Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cmd/jsoncompact/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -79,7 +78,7 @@ func main() { //nolint
}

//nolint:gosec // Intentional file reading.
orig, err := ioutil.ReadFile(m)
orig, err := os.ReadFile(m)
if err != nil {
log.Fatalf("could not read input %s: %v", m, err)
}
Expand All @@ -106,7 +105,7 @@ func main() { //nolint
log.Printf("writing to %s\n", out)
}

err = ioutil.WriteFile(out, comp, 0o600)
err = os.WriteFile(out, comp, 0o600)
if err != nil {
log.Fatalf("could not write output to %s: %v", out, err)
}
Expand Down