Skip to content

Commit

Permalink
Fix Sonar findings (eclipse-hawkbit#1810)
Browse files Browse the repository at this point in the history
Signed-off-by: Marinov Avgustin <[email protected]>
  • Loading branch information
avgustinmm authored Aug 9, 2024
1 parent 52b3ccf commit 8c2d103
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,10 @@ private <T> T putUserAndCall(final Callable<T> callable) throws WrappedException
put(MDC_KEY_USER, currentUser);
}
}
} catch (final RuntimeException e) {
throw e;
} catch (final Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new WrappedException(e);
}
throw new WrappedException(e);
}
}

Expand Down

0 comments on commit 8c2d103

Please sign in to comment.