multi: repleace ioutil.ReadFile

This commit is contained in:
erik authored and ErikEk committed 2024-04-25 11:22:43 +02:00
1 parent 619c8f4eb8
commit ab83343c87
23 files changed
+55 -62

No files matched your search

+1 -2
View File
@@ -6,7 +6,6 @@ import (
"database/sql"
"errors"
"fmt"
"io/ioutil"
"net"
"os"
"path/filepath"
@@ -329,7 +328,7 @@ func (d *DefaultWalletImpl) BuildWalletConfig(ctx context.Context,
case d.cfg.WalletUnlockPasswordFile != "" && walletExists:
d.logger.Infof("Attempting automatic wallet unlock with " +
"password provided in file")
pwBytes, err := ioutil.ReadFile(d.cfg.WalletUnlockPasswordFile)
pwBytes, err := os.ReadFile(d.cfg.WalletUnlockPasswordFile)
if err != nil {
return nil, nil, nil, fmt.Errorf("error reading "+
"password from file %s: %v",