fix(lint): stop to use ioutils
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
db8226acd6
commit
1216fa071c
@ -1,7 +1,6 @@
|
||||
package helpers
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
@ -52,7 +51,7 @@ func WriteConfig(path string, config *models.Config) error {
|
||||
|
||||
log.Debugf("Writing config to %s", configFilePath)
|
||||
|
||||
err = ioutil.WriteFile(configFilePath, data, 0600)
|
||||
err = os.WriteFile(configFilePath, data, 0600)
|
||||
if err != nil {
|
||||
return errors.Trace(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user