Skip to content

Commit 1b7ad8a

Browse files
committed
chore: address rubocop offenses
1 parent 044d725 commit 1b7ad8a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/sync-release-please

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
require 'json'
45

@@ -8,7 +9,7 @@ def extract_version(file_path)
89
File.open(file_path, 'r') do |file|
910
file.each_line do |line|
1011
if line =~ /VERSION\s*=\s*['"]([^'"]+)['"]/
11-
version = $1
12+
version = Regexp.last_match(1)
1213
break
1314
end
1415
end

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ def loaded_service?(constant, service_module)
119119
!::Aws.autoload?(constant) &&
120120
service_module.is_a?(Module) &&
121121
service_module.const_defined?(:Client) &&
122-
(service_module.const_get(:Client).superclass == Seahorse::Client::Base ||
123-
service_module.const_get(:Client).superclass == Aws::Client)
122+
[Seahorse::Client::Base, Aws::Client].include?(service_module.const_get(:Client).superclass)
124123
end
125124
end
126125
end

instrumentation/concurrent_ruby/lib/opentelemetry/instrumentation/concurrent_ruby/patches/thread_pool_executor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def post(*args, **kwargs, &task)
1515
context = OpenTelemetry::Context.current
1616
return super unless context
1717

18-
super(*args, **kwargs) do
18+
super(*args, **kwargs) do # rubocop:disable Style/SuperArguments
1919
OpenTelemetry::Context.with_current(context) do
2020
yield(*args, **kwargs)
2121
end

0 commit comments

Comments
 (0)