Apply suggestions from code review

Co-authored-by: Charlie Chiang <charlie_c_0129@outlook.com>
Signed-off-by: ghostloda <78798447@qq.com>
This commit is contained in:
ghostloda
2022-08-03 12:55:13 +08:00
co-authored by Charlie Chiang
parent a5ba4658a9
commit 67f34ac4a6
+1 -1
View File
@@ -461,7 +461,7 @@ func checkConflictDefs(ctx context.Context, k8sClient client.Client, defs []*uns
}
}
if err != nil && !errors2.IsNotFound(err) {
return nil, errors.Wrapf(err, "check definition %s", def.GetName())
return nil, errors.Wrapf(err, "check definition %s", def.GetName())
}
}
return res, nil