From adda13f7f8b437bdd5bcbcf9db59b6cf87fe01cc Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Tue, 22 Apr 2025 15:34:17 -0700 Subject: [PATCH] chore: Address Style/RedundantParentheses 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. --- .../instrumentation/active_job/handlers/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/active_job/lib/opentelemetry/instrumentation/active_job/handlers/default.rb b/instrumentation/active_job/lib/opentelemetry/instrumentation/active_job/handlers/default.rb index bd05a81ba7..2b93fe41d2 100644 --- a/instrumentation/active_job/lib/opentelemetry/instrumentation/active_job/handlers/default.rb +++ b/instrumentation/active_job/lib/opentelemetry/instrumentation/active_job/handlers/default.rb @@ -60,7 +60,7 @@ def finish(_name, _id, payload) span = otel&.fetch(:span) token = otel&.fetch(:ctx_token) - on_exception((payload[:error] || payload[:exception_object]), span) + on_exception(payload[:error] || payload[:exception_object], span) rescue StandardError => e OpenTelemetry.handle_error(exception: e) ensure