Commit f19fd1a9 by Mario Trangoni

pkg/plugins/dashboards_updater.go: Simplify err check

$ gometalinter --vendor --disable=all --enable=megacheck --deadline=10m ./...
pkg/plugins/dashboards_updater.go:51:2:warning: 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)
parent bb5aaa2d
...@@ -48,11 +48,7 @@ func autoUpdateAppDashboard(pluginDashInfo *PluginDashboardInfoDTO, orgId int64) ...@@ -48,11 +48,7 @@ func autoUpdateAppDashboard(pluginDashInfo *PluginDashboardInfoDTO, orgId int64)
Path: pluginDashInfo.Path, Path: pluginDashInfo.Path,
} }
if err := bus.Dispatch(&updateCmd); err != nil { return bus.Dispatch(&updateCmd)
return err
}
return nil
} }
func syncPluginDashboards(pluginDef *PluginBase, orgId int64) { func syncPluginDashboards(pluginDef *PluginBase, orgId int64) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment