aboutsummaryrefslogtreecommitdiff
path: root/internal/configfile/config_file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-07-07 19:54:48 +0200
committerJakob Unterwurzacher2025-07-07 19:59:35 +0200
commit8f5df19b353e02ffba842fd1b15ccf93da7ee3b4 (patch)
tree8f68b74e56a1d20af82e5093a059d180c925f9be /internal/configfile/config_file.go
parentcdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff)
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'internal/configfile/config_file.go')
-rw-r--r--internal/configfile/config_file.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go
index 995a0c8..28a1ca5 100644
--- a/internal/configfile/config_file.go
+++ b/internal/configfile/config_file.go
@@ -5,7 +5,6 @@ package configfile
import (
"encoding/json"
"fmt"
- "io/ioutil"
"syscall"
"os"
@@ -183,12 +182,12 @@ func Load(filename string) (*ConfFile, error) {
cf.filename = filename
// Read from disk
- js, err := ioutil.ReadFile(filename)
+ js, err := os.ReadFile(filename)
if err != nil {
return nil, err
}
if len(js) == 0 {
- return nil, fmt.Errorf("Config file is empty")
+ return nil, fmt.Errorf("config file is empty")
}
// Unmarshal