Skip to content

Commit

Permalink
chore: fix "io/ioutil" deprecation usage in flatten_json_test
Browse files Browse the repository at this point in the history
```
flatten_json_test.go:4:2: SA1019: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
        "io/ioutil"
```
  • Loading branch information
yosiat committed Sep 26, 2022
1 parent 4477484 commit 6b85ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flatten_json_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package quamina

import (
"io/ioutil"
"os"
"testing"
)

Expand Down Expand Up @@ -123,7 +123,7 @@ func TestMinimal(t *testing.T) {
}

func testTrackerSelection(fj Flattener, tracker NameTracker, label string, filename string, wantedPaths []string, wantedVals []string, t *testing.T) {
event, err := ioutil.ReadFile(filename)
event, err := os.ReadFile(filename)
if err != nil {
t.Error(filename + ": " + err.Error())
}
Expand Down

0 comments on commit 6b85ff9

Please sign in to comment.