Skip to content

Commit

Permalink
chore(clouddriver): use simpler presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-mahajan authored and kirangodishala committed Oct 1, 2024
1 parent b28c424 commit 06590cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ abstract class AbstractWaitForClusterWideClouddriverTask implements CloudProvide
}

Optional<Cluster> cluster = cloudDriverService.maybeCluster(clusterSelection.getApplication(), clusterSelection.credentials, clusterSelection.cluster, clusterSelection.cloudProvider)
if (!cluster.isPresent()) {
if (cluster.isEmpty()) {
return missingClusterResult(stage, clusterSelection)
}

Expand Down

0 comments on commit 06590cd

Please sign in to comment.