happy linting
This commit is contained in:
parent
36ce7028a0
commit
b265231dca
@ -14,6 +14,7 @@ import (
|
|||||||
"google.golang.org/protobuf/types/known/durationpb"
|
"google.golang.org/protobuf/types/known/durationpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// T is the global Timer object.
|
||||||
// nolint:gochecknoglobals
|
// nolint:gochecknoglobals
|
||||||
var T = &Timer{}
|
var T = &Timer{}
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ func (t *Timer) Handle() {
|
|||||||
Msg("timer is running")
|
Msg("timer is running")
|
||||||
|
|
||||||
if t.Req.Current.Seconds > 0 {
|
if t.Req.Current.Seconds > 0 {
|
||||||
t.Req.Current.Seconds -= 1
|
t.Req.Current.Seconds--
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user