mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-13 15:47:17 +03:00
host.go: drop = 0 from declaration; it is the zero value (golint)
This commit is contained in:
parent
57c6abe86c
commit
a1b891aae2
4
host.go
4
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])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user