From 1216fa071ce685d72ef73188fc89a93a7ff9146c Mon Sep 17 00:00:00 2001 From: Matthieu 'JP' DERASSE Date: Fri, 5 Aug 2022 14:52:14 +0000 Subject: [PATCH] fix(lint): stop to use ioutils --- helpers/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helpers/config.go b/helpers/config.go index ce1847c..be4bce6 100644 --- a/helpers/config.go +++ b/helpers/config.go @@ -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) }