From c725ad8a10e6894bcd5b633c290f5da89f7fab1b Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 23 Feb 2023 17:01:28 +0100 Subject: dashboard/app/notifications_test.go: linter think add doesn't have side effects and its return value is ignored --- dashboard/app/notifications_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dashboard/app/notifications_test.go b/dashboard/app/notifications_test.go index 09bf4bd8f..0aceb9915 100644 --- a/dashboard/app/notifications_test.go +++ b/dashboard/app/notifications_test.go @@ -155,8 +155,7 @@ func TestBugObsoleting(t *testing.T) { const day = 24 * time.Hour days := func(n int) time.Time { t := time.Date(2000, 0, 0, 0, 0, 0, 0, time.UTC) - t.Add(time.Duration(n+1) * day) - return t + return t.Add(time.Duration(n+1) * day) } tests := []struct { bug *Bug -- cgit mrf-deployment