Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Lets... not trim the wrong end of the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Jan 6, 2023
1 parent 86677ff commit acd944a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/proxyfox/debug/MixinSupport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fun Throwable.trimStackHead(): Throwable {
val stack = stackTrace

if (stack.size > 2) {
stackTrace = stack.copyOfRange(0, stack.size - 2)
stackTrace = stack.copyOfRange(2, stack.size)
}

return this
Expand Down

0 comments on commit acd944a

Please sign in to comment.