From 8b38a040830109f19550e7329b82ec5caf76b321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 26 Oct 2022 15:23:04 +0200 Subject: Fix linting errors --- tests/field_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/field_test.go') diff --git a/tests/field_test.go b/tests/field_test.go index c8dcf7f..cd27c99 100644 --- a/tests/field_test.go +++ b/tests/field_test.go @@ -70,7 +70,7 @@ func TestFieldTimestamp(t *testing.T) { expectBool(t, hdr.CreatedAt().Exists(), true) actual := float64(hdr.CreatedAt().Get().UnixNano()) / 1e9 - expected, _ := strconv.ParseFloat(hdr.Headers["X-Timestamp"], 64) + expected, _ := strconv.ParseFloat(hdr.Headers["X-Timestamp"], 64) //nolint:errcheck expectFloat64(t, actual, expected) }) @@ -100,7 +100,7 @@ func TestFieldHTTPTimestamp(t *testing.T) { expectBool(t, hdr.UpdatedAt().Exists(), true) actual := hdr.UpdatedAt().Get() - expected, _ := http.ParseTime(hdr.Get("Last-Modified")) + expected, _ := http.ParseTime(hdr.Get("Last-Modified")) //nolint:errcheck expectInt64(t, actual.Unix(), expected.Unix()) }) -- cgit v1.2.3