Commit 87d44490 by Carl Bergquist Committed by GitHub

Merge pull request #15072 from mjtrangoni/fix-megacheck-issue

pkg/services/dashboards/dashboard_service.go: simplify return
parents 84d1ce8f bf90ff87
...@@ -164,11 +164,7 @@ func (dr *dashboardServiceImpl) updateAlerting(cmd *models.SaveDashboardCommand, ...@@ -164,11 +164,7 @@ func (dr *dashboardServiceImpl) updateAlerting(cmd *models.SaveDashboardCommand,
User: dto.User, User: dto.User,
} }
if err := bus.Dispatch(&alertCmd); err != nil { return bus.Dispatch(&alertCmd)
return err
}
return nil
} }
func (dr *dashboardServiceImpl) SaveProvisionedDashboard(dto *SaveDashboardDTO, provisioning *models.DashboardProvisioning) (*models.Dashboard, error) { func (dr *dashboardServiceImpl) SaveProvisionedDashboard(dto *SaveDashboardDTO, provisioning *models.DashboardProvisioning) (*models.Dashboard, error) {
......
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