Skip to content

Commit

Permalink
Replace deprecated ioutil package
Browse files Browse the repository at this point in the history
  • Loading branch information
jangler committed Mar 29, 2024
1 parent 44f54bc commit 93a04cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions faunatone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/csv"
"fmt"
"io"
"io/ioutil"
"math"
"os"
"path/filepath"
Expand Down Expand Up @@ -57,7 +56,7 @@ var (
func must(err error) {
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
ioutil.WriteFile(errorLogFile, []byte(err.Error()+"\n"), 0644)
os.WriteFile(errorLogFile, []byte(err.Error()+"\n"), 0644)
os.Exit(1)
}
}
Expand Down

0 comments on commit 93a04cd

Please sign in to comment.