Skip to content

Commit

Permalink
#3747: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 23, 2024
1 parent 95d6609 commit 588e144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eo-runtime/src/main/java/org/eolang/PhSafe.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ private <T> T through(final Action<T> action, final String suffix) {

/**
* Take stacktrace from exception.
* @param ex The exception
* @param exp The exception
* @param head The head to add
* @return The stacktrace
*/
private static List<String> trace(Throwable ex, final String head) {
final StackTraceElement[] stack = ex.getStackTrace();
private static List<String> trace(final Throwable exp, final String head) {
final StackTraceElement[] stack = exp.getStackTrace();
final List<String> trace = new LinkedList<>();
if (stack != null) {
for (final StackTraceElement elm : stack) {
Expand Down

0 comments on commit 588e144

Please sign in to comment.