Remove ioutil (#181)
In 1.16, it's now deprecated and replaced by `io` and `os`. Let's upgrade! Test plan: - make check - git grep ioutil
This commit is contained in:
+1
-2
@@ -5,7 +5,6 @@ package generate
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -41,7 +40,7 @@ func readConfigGenerateAndWrite(configFilename string) error {
|
||||
filename, err)
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(filename, content, 0o644)
|
||||
err = os.WriteFile(filename, content, 0o644)
|
||||
if err != nil {
|
||||
return errorf(nil, "could not write generated file %v: %v",
|
||||
filename, err)
|
||||
|
||||
Reference in New Issue
Block a user