From a1b891aae2cd834c53298dbf437ca6d1d1dd3b5e Mon Sep 17 00:00:00 2001 From: UlisseMini Date: Fri, 25 Jan 2019 12:09:15 -0500 Subject: [PATCH] host.go: drop = 0 from declaration; it is the zero value (golint) --- host.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host.go b/host.go index 05ecaa0..cd30f40 100644 --- a/host.go +++ b/host.go @@ -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]) }