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

This commit is contained in:
UlisseMini authored and Andrey Petrov committed 2019-02-24 09:40:47 -06:00
1 parent 57c6abe86c
commit a1b891aae2
1 file changed
+2 -2
+2 -2
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])
}