Refactor
This commit is contained in:
parent
de4369997d
commit
f43981bd99
@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
|
||||
@ -43,7 +43,7 @@ func ReadConfig(path string) (Config, error) {
|
||||
defer file.Close()
|
||||
|
||||
// read file
|
||||
bytes, err := ioutil.ReadAll(file)
|
||||
bytes, err := io.ReadAll(file)
|
||||
if err != nil {
|
||||
return config, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user