Appease the linter

This commit is contained in:
2023-03-15 04:45:10 +10:30
parent c8f10e01c7
commit 4909f63c93
3 changed files with 71 additions and 22 deletions

View File

@@ -94,7 +94,6 @@ func (cs *ConfigService) LoadDefaultConfig() {
cs.Config = &defaultConfig
return
}
func (c *Config) ProfileCalled(name string) *DownloadProfile {
@@ -319,6 +318,9 @@ func (cs *ConfigService) WriteConfig() {
}
defer file.Close()
file.Write(s)
_, err = file.Write(s)
if err != nil {
log.Fatalf("could not write config file %s: %s", path, err)
}
file.Close()
}