aboutsummaryrefslogtreecommitdiff
path: root/internal/configfile/config_file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-25 19:48:21 +0200
committerJakob Unterwurzacher2016-09-25 19:48:21 +0200
commit5f4b16c00f2475a8efd0ae0d4d4e26f92b563dc0 (patch)
tree5b9a65d94c3cc58c032e731ea4cb776947b30ebd /internal/configfile/config_file.go
parent166ba74a053898a52ff2e48125c1df97f35a85fd (diff)
Implement changes proposed by gosimple.
Also delete the unused "dirIVNameStruct", found by deadcode.
Diffstat (limited to 'internal/configfile/config_file.go')
-rw-r--r--internal/configfile/config_file.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go
index 74f506f..fab74a6 100644
--- a/internal/configfile/config_file.go
+++ b/internal/configfile/config_file.go
@@ -198,9 +198,5 @@ func (cf *ConfFile) WriteFile() error {
return err
}
err = os.Rename(tmp, cf.filename)
- if err != nil {
- return err
- }
-
- return nil
+ return err
}