Skip to content

Commit

Permalink
Linter warning fix about deprecated io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanb committed Jan 19, 2024
1 parent 45b881a commit c2eed36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gursShp2geoJson.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"io/fs"
"log"
"math"
"os"
Expand Down Expand Up @@ -504,7 +504,7 @@ func main() {
log.Fatal(err)
}

err = ioutil.WriteFile(catGeoJSONFileName, rawJSON, 0644)
err = os.WriteFile(catGeoJSONFileName, rawJSON, fs.FileMode(0644))
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit c2eed36

Please sign in to comment.