File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments