Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Sep 15, 2023
1 parent df0f875 commit ae1fb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/Middleware/StackTrace.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub call {
$trace = $caught_trace if $caught_trace;
}

# Use ref $trace to avoid calling as_string twice when it's not necessary
# Use ref $trace to avoid overloaded as_string() for bool evaluation
if (ref $trace && ($caught || ($self->force && ref $res eq 'ARRAY' && $res->[0] == 500)) ) {
my $text = $trace->as_string;
my $html = $trace->as_html;
Expand Down

0 comments on commit ae1fb1d

Please sign in to comment.