Skip to content

Commit 02ee3e4

Browse files
author
navetacandra
committed
fix: change os.ReadFile to ioutil.ReadFile for go1.20
1 parent ff64503 commit 02ee3e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package server
44
import (
55
"compress/gzip"
66
"fmt"
7+
"io/ioutil"
78
"io"
89
"encoding/json"
910
"log"
@@ -274,7 +275,7 @@ func FindUser(username string) AuthInfo {
274275

275276
var authInfo []AuthInfo
276277
var user AuthInfo
277-
content, err := os.ReadFile(DefaultConfig.AuthInfoFilePath)
278+
content, err := ioutil.ReadFile(DefaultConfig.AuthInfoFilePath)
278279
if err != nil {
279280
log.Print(err)
280281
}

0 commit comments

Comments
 (0)