build: address gocritic warnings

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2023-06-02 11:29:35 +02:00
committed by mergify[bot]
parent 4e6675df76
commit 53c94efc02
6 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ func getCrushLocationMap(crushLocationLabels string, nodeLabels map[string]strin
crushLocationType = "host"
}
// replace "." with "-" to satisfy ceph crush map.
value = strings.Replace(strings.TrimSpace(value), ".", "-", -1)
value = strings.ReplaceAll(strings.TrimSpace(value), ".", "-")
crushLocationMap[crushLocationType] = value
}