mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix golint error
PR #36011 fixed almost all of the golint issues though there is still one golint error: https://goreportcard.com/report/github.com/docker/docker#golint ``` Golint is a linter for Go source code. docker/daemon/reload.go Line 64: warning: redundant if ...; err != nil check, just return error instead. (golint) ``` This fix fixes the last one. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
8c31aacebf
commit
e02a3d9f5b
1 changed files with 1 additions and 4 deletions
|
@ -61,10 +61,7 @@ func (daemon *Daemon) Reload(conf *config.Config) (err error) {
|
|||
if err := daemon.reloadLiveRestore(conf, attributes); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := daemon.reloadNetworkDiagnosticPort(conf, attributes); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return daemon.reloadNetworkDiagnosticPort(conf, attributes)
|
||||
}
|
||||
|
||||
// reloadDebug updates configuration with Debug option
|
||||
|
|
Loading…
Add table
Reference in a new issue