From 8c954c132a0ad19b95e9193138b6c4bc10b2d0b7 Mon Sep 17 00:00:00 2001 From: Hannah Ramadan Date: Tue, 20 Aug 2024 16:29:17 -0700 Subject: [PATCH] parens --- lib/new_relic/agent/instrumentation/grape.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/new_relic/agent/instrumentation/grape.rb b/lib/new_relic/agent/instrumentation/grape.rb index 6a136c36bb..0e658e02c5 100644 --- a/lib/new_relic/agent/instrumentation/grape.rb +++ b/lib/new_relic/agent/instrumentation/grape.rb @@ -19,8 +19,8 @@ depends_on do begin - if (defined?(Bundler) && (Bundler::VERSION >= '2' && Bundler.rubygems.installed_specs.map(&:name).include?('newrelic-grape')) || - Bundler.rubygems.all_specs.map(&:name).include?('newrelic-grape')) + if defined?(Bundler) && ((Bundler::VERSION >= '2' && Bundler.rubygems.installed_specs.map(&:name).include?('newrelic-grape')) || + Bundler.rubygems.all_specs.map(&:name).include?('newrelic-grape')) NewRelic::Agent.logger.info('Not installing New Relic supported Grape instrumentation because the third party newrelic-grape gem is present') false else