Skip to content

Commit

Permalink
test: fix golint error
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Mar 7, 2023
1 parent aa61bfd commit b74a512
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions filter-junit.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ package main
import (
"encoding/xml"
"flag"
"io/ioutil"
"os"
"regexp"
)
Expand Down Expand Up @@ -96,7 +95,7 @@ func main() {
}
} else {
var err error
data, err = ioutil.ReadFile(input)
data, err = os.ReadFile(input)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -143,7 +142,7 @@ func main() {
panic(err)
}
} else {
if err := ioutil.WriteFile(*output, data, 0644); err != nil {
if err := os.WriteFile(*output, data, 0644); err != nil {
panic(err)
}
}
Expand Down

0 comments on commit b74a512

Please sign in to comment.