Skip to content

Commit

Permalink
Merge pull request #220 from andyzhangx/fix-golint-error
Browse files Browse the repository at this point in the history
test: fix golint error
  • Loading branch information
k8s-ci-robot authored Mar 7, 2023
2 parents aa61bfd + b74a512 commit e322ce5
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 e322ce5

Please sign in to comment.