From 8db4404d506ee1c618ea369431f981c5bb5cdb8e Mon Sep 17 00:00:00 2001 From: demonstan <7578819+demonstan@users.noreply.github.com> Date: Sun, 31 May 2020 22:59:34 +0800 Subject: [PATCH] Update config.go --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 2189e8b..6f06255 100644 --- a/config.go +++ b/config.go @@ -75,7 +75,7 @@ func getConfig() (*Config, error) { if err != nil { return nil, errors.New("failed to load config: ", configFile).Base(err) } - defer configInput.Close() + // defer configInput.Close() cfg := &config{} if err = decodeCommentJSON(configInput, cfg); err != nil {