Skip to content

Commit

Permalink
lint: fix nolint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Oct 5, 2022
1 parent e0dd33b commit 1556e95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/parse/default_parsers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestLevelParsers(t *testing.T) {
}

func TestNoopParsers(t *testing.T) {
// nolint: errcheck
//nolint: errcheck
testData := []func(){func() { NoopTimeParser(1) }, func() { NoopLevelParser("info") }}
for _, test := range testData {
ok := func() (ok bool) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/parse/parse_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func FuzzDefaultTimeParser(f *testing.F) {
f.Add(`{"seconds": 42, "nanos": 69}`)
f.Fuzz(func(t *testing.T, in string) {
// All we care about are panics. Errors are expected.
DefaultTimeParser(prepareTime(in)) // nolint:errcheck
DefaultTimeParser(prepareTime(in)) //nolint:errcheck
})
}

Expand All @@ -194,6 +194,6 @@ func FuzzStrictUnixTimeParser(f *testing.F) {
f.Add("1641092371.456")
f.Fuzz(func(t *testing.T, in string) {
// All we care about are panics. Errors are expected.
StrictUnixTimeParser(prepareTime(in)) // nolint:errcheck
StrictUnixTimeParser(prepareTime(in)) //nolint:errcheck
})
}

0 comments on commit 1556e95

Please sign in to comment.