Skip to content

Commit c7aa847

Browse files
author
Vladimir Kotal
committed
condense catch
1 parent e757ce0 commit c7aa847

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,9 @@ protected void buildTagList(File directory, CommandTimeoutType cmdType) {
672672

673673
try {
674674
future.get(RuntimeEnvironment.getInstance().getCommandTimeout(cmdType), TimeUnit.SECONDS);
675-
}
676-
catch (InterruptedException | ExecutionException e) {
675+
} catch (InterruptedException | ExecutionException e) {
677676
LOGGER.log(Level.WARNING, "failed tag rebuild for directory " + directory, e);
678-
}
679-
catch (TimeoutException e) {
677+
} catch (TimeoutException e) {
680678
LOGGER.log(Level.WARNING, "timed out tag rebuild for directory " + directory, e);
681679
}
682680

0 commit comments

Comments
 (0)