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:
@ -226,7 +226,7 @@ func TestFindPoolAndTopology(t *testing.T) {
|
||||
|
||||
checkOutput := func(err error, poolName string, topoSegment map[string]string) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("expected success, got err (%v)", err)
|
||||
return fmt.Errorf("expected success, got err (%w)", err)
|
||||
}
|
||||
if poolName != pool1 || !(len(topoSegment) == 2) &&
|
||||
topoSegment[topologyPrefix+"/"+label1] == l1Value1 &&
|
||||
|
Reference in New Issue
Block a user