fix(lint): stop to use ioutils
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE 2022-08-05 14:52:14 +00:00
parent db8226acd6
commit 1216fa071c
Signed by: mderasse
GPG Key ID: 55141C777B16A705

View File

@ -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)
}