Skip to content

Commit b368726

Browse files
committed
fixed a shadowing err issue
1 parent ba94f1d commit b368726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (k *K8sSWIFTv2Middleware) IPConfigsRequestHandlerWrapper(defaultHandler, fa
6262
ipInfo := &ipConfigsResp.PodIPInfo[i]
6363
// there will be no pod connectivity to and from those pods
6464
if defaultDenyACLbool {
65-
err := addDefaultDenyACL(ipInfo)
65+
err = addDefaultDenyACL(ipInfo)
6666
if err != nil {
6767
errors.Wrapf(err, "failed to add default deny acl's for pod %s", podInfo.Name())
6868
}

0 commit comments

Comments
 (0)