Skip to content

Commit b74a512

Browse files
committed
test: fix golint error
1 parent aa61bfd commit b74a512

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: filter-junit.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ package main
2424
import (
2525
"encoding/xml"
2626
"flag"
27-
"io/ioutil"
2827
"os"
2928
"regexp"
3029
)
@@ -96,7 +95,7 @@ func main() {
9695
}
9796
} else {
9897
var err error
99-
data, err = ioutil.ReadFile(input)
98+
data, err = os.ReadFile(input)
10099
if err != nil {
101100
panic(err)
102101
}
@@ -143,7 +142,7 @@ func main() {
143142
panic(err)
144143
}
145144
} else {
146-
if err := ioutil.WriteFile(*output, data, 0644); err != nil {
145+
if err := os.WriteFile(*output, data, 0644); err != nil {
147146
panic(err)
148147
}
149148
}

0 commit comments

Comments
 (0)