Skip to content

Commit

Permalink
SONAR-24107 Fix quality gate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alain-kermis-sonarsource authored and sonartech committed Jan 3, 2025
1 parent e98dafa commit 1566baf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,13 @@ public void execute(List<RegisteredMigrationStep> steps, MigrationStatusListener
}
allStepsExecuted = true;
} finally {
long dbMigrationDuration = 0L;
if (allStepsExecuted) {
dbMigrationDuration = globalProfiler.stopInfo(GLOBAL_END_MESSAGE,
globalProfiler.stopInfo(GLOBAL_END_MESSAGE,
databaseMigrationState.getCompletedMigrations(),
databaseMigrationState.getTotalMigrations(),
"success");
} else {
dbMigrationDuration = globalProfiler.stopError(GLOBAL_END_MESSAGE,
globalProfiler.stopError(GLOBAL_END_MESSAGE,
databaseMigrationState.getCompletedMigrations(),
databaseMigrationState.getTotalMigrations(),
"failure");
Expand Down

0 comments on commit 1566baf

Please sign in to comment.