summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-23 13:02:37 +0300
committerPaul Buetow <paul@buetow.org>2023-04-23 13:02:37 +0300
commit356af727a8648bcff6309650b78f3f43af0c89c6 (patch)
tree655f9d722b979f1447097d2f37848b35b1c9be61
parent9d5421902f0ca5d4ad8a12f7e98455e6b632ae4a (diff)
remove comments for the obviousv0.0.0
-rw-r--r--internal/config.go3
1 files changed, 0 insertions, 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