Skip to content
Snippets Groups Projects
Commit bf78e1eb authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros Committed by Vasvi Sharma
Browse files

remove redundant logical operand

parent eef4d20b
No related branches found
No related tags found
1 merge request!214Automation of putting Drupal clones behind SSO
Pipeline #7043186 passed
......@@ -246,7 +246,7 @@ func (r *DrupalSiteReconciler) Reconcile(ctx context.Context, req ctrl.Request)
if drupalSite.Labels == nil {
drupalSite.Labels = map[string]string{}
}
if (namespace.Labels[ssoProxyLabel] == "true" && drupalSite.Labels[ssoProxyLabel] != "true") || (drupalSite.Labels[sitePrimaryLabel] != "true" && drupalSite.Labels[ssoProxyLabel] != "true") {
if (namespace.Labels[ssoProxyLabel] == "true" || drupalSite.Labels[sitePrimaryLabel] != "true" ) && drupalSite.Labels[ssoProxyLabel] != "true" {
drupalSite.Labels[ssoProxyLabel] = "true"
return r.updateCRorFailReconcile(ctx, log, drupalSite)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment