Skip to content

Commit

Permalink
chore: Fix new rubocop warnings (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Feb 28, 2025
1 parent 026cfb8 commit 617f4f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/googleauth/compute_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def reset_cache
def initialize options = {}
# Override the constructor to remember whether the universe domain was
# overridden by a constructor argument.
@universe_domain_overridden = options["universe_domain"] || options[:universe_domain] ? true : false
@universe_domain_overridden = options["universe_domain"] || options[:universe_domain]
# TODO: Remove when universe domain metadata endpoint is stable (see b/349488459).
@disable_universe_domain_check = true
super options
Expand Down
4 changes: 2 additions & 2 deletions spec/googleauth/compute_engine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ def make_auth_stubs opts
end

it "should duplicate the universe_domain_overridden" do
expect(@creds.instance_variable_get(:@universe_domain_overridden)).to eq false
expect(@creds.duplicate(universe_domain_overridden: true).instance_variable_get(:@universe_domain_overridden)).to eq true
expect(@creds.instance_variable_get(:@universe_domain_overridden)).to be_falsey
expect(@creds.duplicate(universe_domain_overridden: true).instance_variable_get(:@universe_domain_overridden)).to be_truthy
end
end
end

0 comments on commit 617f4f8

Please sign in to comment.