chore: io/ioutil has been deprecated

This commit is contained in:
Christian Schwarz
2024-09-08 13:15:26 +00:00
parent 48c5b60024
commit 740ab4b1b2
9 changed files with 11 additions and 20 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package config
import (
"fmt"
"io/ioutil"
"log/syslog"
"os"
"time"
@@ -671,7 +670,7 @@ func ParseConfig(path string) (i *Config, err error) {
var bytes []byte
if bytes, err = ioutil.ReadFile(path); err != nil {
if bytes, err = os.ReadFile(path); err != nil {
return
}