mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
build: address gocritic
warnings
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
4e6675df76
commit
53c94efc02
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user