Skip to content

Commit 7340d38

Browse files
committed
chore: refactor ternary statement to use min function
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
1 parent 52b0a34 commit 7340d38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/instana/trace/span.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def add_stack(limit: 30, stack: Kernel.caller)
9090
n: line,
9191
m: method.join(' ')
9292
}
93-
end.take(limit > 40 ? 40 : limit)
93+
end.take([limit, 40].min)
9494
end
9595

9696
# Log an error into the span

0 commit comments

Comments
 (0)