Fix warning
This commit is contained in:
parent
a1e0c024cc
commit
01cbcc184e
3
main.go
3
main.go
@ -6,7 +6,6 @@ import (
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"regexp"
|
||||
@ -138,7 +137,7 @@ func save(path string, kanjiList []*KanjiEntry) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := ioutil.WriteFile(path, data, 0644); err != nil {
|
||||
if err := os.WriteFile(path, data, 0644); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user