aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-02-23 17:01:28 +0100
committerTaras Madan <tarasmadan@google.com>2023-02-24 12:47:23 +0100
commitc725ad8a10e6894bcd5b633c290f5da89f7fab1b (patch)
treeecedbc97e4fff7abf48386680df03de56bcd0c20
parent43662dbd759c10343cd850f581258e49574708e2 (diff)
dashboard/app/notifications_test.go: linter think add doesn't have side effects and its return value is ignored
-rw-r--r--dashboard/app/notifications_test.go3
1 files changed, 1 insertions, 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