host.go: drop = 0 from declaration; it is the zero value (golint)

This commit is contained in:
UlisseMini 2019-01-25 12:09:15 -05:00 committed by Andrey Petrov
parent 57c6abe86c
commit a1b891aae2

View File

@ -442,7 +442,7 @@ func (h *Host) InitCommands(c *chat.Commands) {
return errors.New("user not found")
}
var until time.Duration = 0
var until time.Duration
if len(args) > 1 {
until, _ = time.ParseDuration(args[1])
}
@ -535,7 +535,7 @@ func (h *Host) InitCommands(c *chat.Commands) {
return errors.New("must specify user")
}
var until time.Duration = 0
var until time.Duration
if len(args) > 1 {
until, _ = time.ParseDuration(args[1])
}