From 1556e959adc00b121208f1544a00240ddcd801e6 Mon Sep 17 00:00:00 2001 From: Jonathan Rockway <2367+jrockway@users.noreply.github.com> Date: Wed, 5 Oct 2022 20:16:56 +0000 Subject: [PATCH] lint: fix nolint formatting --- pkg/parse/default_parsers_test.go | 2 +- pkg/parse/parse_fuzz_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/parse/default_parsers_test.go b/pkg/parse/default_parsers_test.go index 1ad33b5..b705faa 100644 --- a/pkg/parse/default_parsers_test.go +++ b/pkg/parse/default_parsers_test.go @@ -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) { diff --git a/pkg/parse/parse_fuzz_test.go b/pkg/parse/parse_fuzz_test.go index b693da5..4b1bb49 100644 --- a/pkg/parse/parse_fuzz_test.go +++ b/pkg/parse/parse_fuzz_test.go @@ -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 }) } @@ -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 }) }