forked from External/ergo
parent
dc4214a8ca
commit
430b40fc2f
10 changed files with 18 additions and 21 deletions
|
|
@ -6,8 +6,8 @@ package irc
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/tidwall/buntdb"
|
||||
|
|
@ -215,7 +215,7 @@ func doImportDB(config *Config, dbImport databaseImport, tx *buntdb.Tx) (err err
|
|||
}
|
||||
|
||||
func ImportDB(config *Config, infile string) (err error) {
|
||||
data, err := ioutil.ReadFile(infile)
|
||||
data, err := os.ReadFile(infile)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue