mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-22 23:52:12 +03:00
host.go: drop = 0 from declaration; it is the zero value (golint)
This commit is contained in:
1 parent
57c6abe86c
commit
a1b891aae2
1 file changed
+2
-2
@@ -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])
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user