Merge pull request #1946 from strmfos/master

BIP-158: replace deprecated io/ioutil with os.ReadFile
This commit is contained in:
Jon Atack authored and GitHub committed 2026-04-24 18:57:07 -07:00
commit 178ba65952
1 file changed
+1 -2
+1 -2
View File
@@ -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