Skip to content

Commit

Permalink
Remove unnecessary Semeru check (#333)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Yong <jason_yong@uk.ibm.com>

Signed-off-by: Jason Yong <jason_yong@uk.ibm.com>
  • Loading branch information
yongja79 authored Nov 18, 2022
1 parent 55a02ae commit c5aa116
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions controllers/webspherelibertyapplication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,10 @@ func (r *ReconcileWebSphereLiberty) Reconcile(ctx context.Context, request ctrl.
if r.isSemeruEnabled(instance) {
message = "Check Semeru Compiler resources ready"
reqLogger.Info(message)
if instance.GetSemeruCloudCompiler() != nil {
err = r.areSemeruCompilerResourcesReady(instance)
if err != nil {
reqLogger.Error(err, message)
return r.ManageError(err, common.StatusConditionTypeResourcesReady, instance)
}
err = r.areSemeruCompilerResourcesReady(instance)
if err != nil {
reqLogger.Error(err, message)
return r.ManageError(err, common.StatusConditionTypeResourcesReady, instance)
}
}

Expand Down

0 comments on commit c5aa116

Please sign in to comment.