Skip to content

Commit

Permalink
Fix test warning: ineffectual assignment to f.
Browse files Browse the repository at this point in the history
  • Loading branch information
edoger committed Apr 10, 2021
1 parent 8d2bf09 commit 5769bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_formatter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestNewJSONFormatter(t *testing.T) {
t.Fatal("NewJSONFormatter(): nil")
}

f, err = NewJSONFormatter(map[string]string{"hello": "hello"}, true)
_, err = NewJSONFormatter(map[string]string{"hello": "hello"}, true)
if err == nil {
t.Fatal("NewJSONFormatter(): no error")
}
Expand Down

0 comments on commit 5769bb5

Please sign in to comment.