Merge pull request #36025 from yongtang/01152018-golint

Fix golint error
Upstream-commit: 410e95d368cc03363472691bb2b228d3bd5c155a
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2018-01-16 02:05:42 +01:00
committed by GitHub
+1 -4
View File
@@ -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