Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ykitamura-mdsol authored Nov 29, 2024
1 parent 2ee2162 commit d67e5de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/mauth/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def initialize(config = {})
Rails.logger
else
require 'logger'
is_win = RUBY_PLATFORM =~ /mswin|windows|mingw32|cygwin/i
null_device = is_win ? 'NUL' : '/dev/null'
::Logger.new(File.open(null_device, File::WRONLY))
::Logger.new(File.open(File::NULL, File::WRONLY))
end
end

Expand Down Expand Up @@ -183,7 +181,7 @@ def mauth_service_response_error(response)

# Changes all keys in the top level of the hash to symbols. Does not affect nested hashes inside this one.
def symbolize_keys(hash)
hash.keys.each do |key| # rubocop:disable Style/HashEachMethods
hash.keys.each do |key|
hash[(key.to_sym rescue key) || key] = hash.delete(key)
end
hash
Expand Down

0 comments on commit d67e5de

Please sign in to comment.