mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Enable Go linter gocritic (#26224)
* Chore: Enable gocritic linter Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@@ -99,7 +99,7 @@ func validateDefaultUniqueness(datasources []*configs) error {
|
||||
}
|
||||
|
||||
if ds.IsDefault {
|
||||
defaultCount[ds.OrgID] = defaultCount[ds.OrgID] + 1
|
||||
defaultCount[ds.OrgID]++
|
||||
if defaultCount[ds.OrgID] > 1 {
|
||||
return ErrInvalidConfigToManyDefault
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user