Skip to content

Commit

Permalink
updated return inline
Browse files Browse the repository at this point in the history
  • Loading branch information
rejain456 committed Jan 21, 2025
1 parent b9bc639 commit 7913564
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cns/middlewares/k8sSwiftV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ func ValidateSwiftv2Pod(pod v1.Pod) bool {
// check the pod labels for Swift V2
_, swiftV2PodNetworkLabel := pod.Labels[configuration.LabelPodSwiftV2]
_, swiftV2PodNetworkInstanceLabel := pod.Labels[configuration.LabelPodNetworkInstanceSwiftV2]
if swiftV2PodNetworkLabel || swiftV2PodNetworkInstanceLabel {
return true
}
return false
return swiftV2PodNetworkLabel || swiftV2PodNetworkInstanceLabel
}

func (k *K8sSWIFTv2Middleware) getMTPNC(ctx context.Context, podInfo cns.PodInfo) (mtpncResource v1alpha1.MultitenantPodNetworkConfig, respCode types.ResponseCode, message string) {
Expand Down

0 comments on commit 7913564

Please sign in to comment.