mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: resolve errorlint issues
This commit resolves errorlint issues which checks for the code that will cause problems with the error wrapping scheme. Updates: #1586 Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
@ -151,7 +151,7 @@ func GetTopologyFromRequest(
|
||||
err := json.Unmarshal([]byte(strings.Replace(topologyPoolsStr, "\n", " ", -1)), &topologyPools)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf(
|
||||
"failed to parse JSON encoded topology constrained pools parameter (%s): %v",
|
||||
"failed to parse JSON encoded topology constrained pools parameter (%s): %w",
|
||||
topologyPoolsStr,
|
||||
err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user