Skip to content

Commit

Permalink
chore: address rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Jan 16, 2025
1 parent 044d725 commit 1b7ad8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bin/sync-release-please
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require 'json'

Expand All @@ -8,7 +9,7 @@ def extract_version(file_path)
File.open(file_path, 'r') do |file|
file.each_line do |line|
if line =~ /VERSION\s*=\s*['"]([^'"]+)['"]/
version = $1
version = Regexp.last_match(1)
break
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def loaded_service?(constant, service_module)
!::Aws.autoload?(constant) &&
service_module.is_a?(Module) &&
service_module.const_defined?(:Client) &&
(service_module.const_get(:Client).superclass == Seahorse::Client::Base ||
service_module.const_get(:Client).superclass == Aws::Client)
[Seahorse::Client::Base, Aws::Client].include?(service_module.const_get(:Client).superclass)
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def post(*args, **kwargs, &task)
context = OpenTelemetry::Context.current
return super unless context

super(*args, **kwargs) do
super(*args, **kwargs) do # rubocop:disable Style/SuperArguments
OpenTelemetry::Context.with_current(context) do
yield(*args, **kwargs)
end
Expand Down

0 comments on commit 1b7ad8a

Please sign in to comment.