Merge pull request #1946 from strmfos/master
Some checks failed
GitHub Actions Check / Link-Format-Checks (push) Has been cancelled
GitHub Actions Check / Build-Table-Checks (push) Has been cancelled
GitHub Actions Check / Diff Checks (fails until number assignment) (push) Has been cancelled
GitHub Actions Check / Typo Checks (push) Has been cancelled
Some checks failed
GitHub Actions Check / Link-Format-Checks (push) Has been cancelled
GitHub Actions Check / Build-Table-Checks (push) Has been cancelled
GitHub Actions Check / Diff Checks (fails until number assignment) (push) Has been cancelled
GitHub Actions Check / Typo Checks (push) Has been cancelled
BIP-158: replace deprecated io/ioutil with os.ReadFile
This commit is contained in:
commit
178ba65952
@ -13,7 +13,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
@ -164,7 +163,7 @@ func main() {
|
||||
|
||||
writerFile = writer
|
||||
|
||||
cert, err := ioutil.ReadFile(defaultBtcdRPCCertFile)
|
||||
cert, err := os.ReadFile(defaultBtcdRPCCertFile)
|
||||
if err != nil {
|
||||
fmt.Println("Couldn't read RPC cert: ", err.Error())
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user