From 356af727a8648bcff6309650b78f3f43af0c89c6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 23 Apr 2023 13:02:37 +0300 Subject: remove comments for the obvious --- internal/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/config.go b/internal/config.go index e7a152a..85782cf 100644 --- a/internal/config.go +++ b/internal/config.go @@ -21,20 +21,17 @@ type config struct { func newConfig(configFile string) (config, error) { var config config - // Open the file file, err := os.Open(configFile) if err != nil { return config, err } defer file.Close() - // Read the file content bytes, err := ioutil.ReadAll(file) if err != nil { return config, err } - // Parse the JSON content err = json.Unmarshal(bytes, &config) if err != nil { return config, err -- cgit v1.2.3