diff options
Diffstat (limited to 'internal/configfile/config_file.go')
| -rw-r--r-- | internal/configfile/config_file.go | 5 | 
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 | 
