aboutsummaryrefslogtreecommitdiffstats
path: root/build/generate-bindata.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/generate-bindata.go')
-rw-r--r--build/generate-bindata.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/generate-bindata.go b/build/generate-bindata.go
index efd172f779..477139d67b 100644
--- a/build/generate-bindata.go
+++ b/build/generate-bindata.go
@@ -11,7 +11,6 @@ import (
"bytes"
"crypto/sha1"
"fmt"
- "io/ioutil"
"log"
"net/http"
"os"
@@ -28,7 +27,7 @@ func needsUpdate(dir string, filename string) (bool, []byte) {
needRegen = true
}
- oldHash, err := ioutil.ReadFile(filename + ".hash")
+ oldHash, err := os.ReadFile(filename + ".hash")
if err != nil {
oldHash = []byte{}
}
@@ -83,5 +82,5 @@ func main() {
if err != nil {
log.Fatalf("%v\n", err)
}
- _ = ioutil.WriteFile(filename+".hash", newHash, 0666)
+ _ = os.WriteFile(filename+".hash", newHash, 0666)
}