Skip to content

Commit c64487d

Browse files
chore: Address Style/RedundantParentheses (#1499)
Rubocop 1.75.3 came out on 22 April. Our Gemfile is set to install new patch versions automatically. This cop started failing after the update with the message: Don't use parentheses around a method argument.
1 parent 73a4d41 commit c64487d

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/active_job/lib/opentelemetry/instrumentation/active_job/handlers

1 file changed

+1
-1
lines changed

instrumentation/active_job/lib/opentelemetry/instrumentation/active_job/handlers/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def finish(_name, _id, payload)
6060
span = otel&.fetch(:span)
6161
token = otel&.fetch(:ctx_token)
6262

63-
on_exception((payload[:error] || payload[:exception_object]), span)
63+
on_exception(payload[:error] || payload[:exception_object], span)
6464
rescue StandardError => e
6565
OpenTelemetry.handle_error(exception: e)
6666
ensure

0 commit comments

Comments
 (0)