Fix warning

This commit is contained in:
Alex Yatskov 2024-03-30 12:09:39 -07:00
parent a1e0c024cc
commit 01cbcc184e

View File

@ -6,7 +6,6 @@ import (
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
"io/ioutil"
"log" "log"
"os" "os"
"regexp" "regexp"
@ -138,7 +137,7 @@ func save(path string, kanjiList []*KanjiEntry) error {
return err return err
} }
if err := ioutil.WriteFile(path, data, 0644); err != nil { if err := os.WriteFile(path, data, 0644); err != nil {
return err return err
} }