Unverified Commit 96b6cb51 authored by ls-2018's avatar ls-2018 Committed by GitHub
Browse files

feat: remove useless branch condition (#4920)


Signed-off-by: default avataracejilam <acejilam@gmail.com>
parent ec046928
......@@ -1046,9 +1046,8 @@ func (r *DynamoGraphDeploymentReconciler) reconcileK8sDiscoveryResources(ctx con
if !r.Config.IsK8sDiscoveryEnabled(dynamoDeployment.Annotations) {
logger.Info("K8s discovery is not enabled")
return nil
} else {
logger.Info("K8s discovery is enabled")
}
logger.Info("K8s discovery is enabled")
serviceAccount := discovery.GetK8sDiscoveryServiceAccount(dynamoDeployment.Name, dynamoDeployment.Namespace)
_, _, err := commoncontroller.SyncResource(ctx, r, dynamoDeployment, func(ctx context.Context) (*corev1.ServiceAccount, bool, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment