From b265231dcab8efe38ee55de35f455bdc5f7ac935 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Wed, 11 Aug 2021 14:24:29 +0200 Subject: [PATCH] happy linting --- pkg/timer/timer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/timer/timer.go b/pkg/timer/timer.go index 3896830..72ef981 100644 --- a/pkg/timer/timer.go +++ b/pkg/timer/timer.go @@ -14,6 +14,7 @@ import ( "google.golang.org/protobuf/types/known/durationpb" ) +// T is the global Timer object. // nolint:gochecknoglobals var T = &Timer{} @@ -38,7 +39,7 @@ func (t *Timer) Handle() { Msg("timer is running") if t.Req.Current.Seconds > 0 { - t.Req.Current.Seconds -= 1 + t.Req.Current.Seconds-- return }