summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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