From c95e0c72ca6789f0efad908b5efe069bf3dba29f Mon Sep 17 00:00:00 2001 From: James Landrein Date: Tue, 12 Oct 2021 18:31:02 +0200 Subject: [PATCH] misc: remove linter warning --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 96b8a86..631d7f3 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,6 @@ func main() { if err != nil { log.Fatalf("Error opening %v : %v\n", os.Args[1], err) } - defer configFile.Close() var config m.Config decoder := yaml.NewDecoder(configFile) @@ -66,6 +65,7 @@ func main() { if err != nil { log.Fatalf("Error reading config : %v\n", err) } + configFile.Close() m.Configuration = config