Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Nov 25, 2024
1 parent e9bfb38 commit c927607
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ boolean couldBeMovedToDeletePhase(final String policy, final IndexMetadata index
return false;
}
final LifecycleExecutionState executionState = indexMetadata.getLifecycleExecutionState();
if (executionState.phase().equals(TimeseriesLifecycleType.HOT_PHASE) && nonLeapFrogSteps.contains(executionState.action()) == true) {
if (executionState.phase().equals(TimeseriesLifecycleType.HOT_PHASE)
&& nonLeapFrogSteps.contains(executionState.action()) == true) {
// Don't leap-frog these steps, because the index hasn't rolled over yet.
return false;
}
Expand Down Expand Up @@ -463,7 +464,8 @@ void runPolicyAfterStateChange(String policy, IndexMetadata indexMetadata) {
}
}

if (TimeseriesLifecycleType.DELETE_PHASE.equals(currentStep.getKey().phase()) == false && couldBeMovedToDeletePhase(policy, indexMetadata)) {
if (TimeseriesLifecycleType.DELETE_PHASE.equals(currentStep.getKey().phase()) == false
&& couldBeMovedToDeletePhase(policy, indexMetadata)) {
logger.info("--> {} could be deleted! moving to delete...", indexMetadata.getIndex().getName());
moveToStep(
indexMetadata.getIndex(),
Expand Down

0 comments on commit c927607

Please sign in to comment.