mirror of
https://github.com/grafana/grafana.git
synced 2025-01-21 22:13:38 -06:00
Fixed new gotmetalinter warning
This commit is contained in:
parent
66a13b281c
commit
80e441f48b
@ -76,7 +76,7 @@ func (dr *dashboardServiceImpl) buildSaveDashboardCommand(dto *SaveDashboardDTO,
|
||||
return nil, models.ErrDashboardFolderCannotHaveParent
|
||||
}
|
||||
|
||||
if dash.IsFolder && strings.ToLower(dash.Title) == strings.ToLower(models.RootFolderName) {
|
||||
if dash.IsFolder && strings.EqualFold(dash.Title, models.RootFolderName) {
|
||||
return nil, models.ErrDashboardFolderNameExists
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user