Skip to content

Commit 3caabd2

Browse files
committed
Move rubocop:disable to wrap method
1 parent 2b56689 commit 3caabd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ def loaded_service_clients
115115
# 2 - Validates whether if is a service client
116116
# note that Seahorse::Client::Base is a superclass for V3 clients
117117
# but for V2, it is Aws::Client
118+
# rubocop:disable Style/MultipleComparison
118119
def loaded_service?(constant, service_module)
119120
!::Aws.autoload?(constant) &&
120121
service_module.is_a?(Module) &&
121122
service_module.const_defined?(:Client) &&
122123
(service_module.const_get(:Client).superclass == Seahorse::Client::Base ||
123-
service_module.const_get(:Client).superclass == Aws::Client) # rubocop:disable Style/MultipleComparison
124+
service_module.const_get(:Client).superclass == Aws::Client)
124125
end
126+
# rubocop:enable Style/MultipleComparison
125127
end
126128
end
127129
end

0 commit comments

Comments
 (0)