[#493] cmd/node: Fix linter errors in config
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e9e986ac71
commit
a2547da5ae
9 changed files with 19 additions and 12 deletions
|
@ -46,7 +46,7 @@ func NotificationEndpoint(c *config.Config) []string {
|
|||
// Returns DialTimeoutDefault if value is not positive duration.
|
||||
func DialTimeout(c *config.Config) time.Duration {
|
||||
v := config.DurationSafe(c.Sub(subsection), "dial_timeout")
|
||||
if v != 0 {
|
||||
if v > 0 {
|
||||
return v
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue