Skip to content

Commit 0903ac4

Browse files
committed
Fix things I didn't break to shut up Rubocop
1 parent a9d4961 commit 0903ac4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/omniauth-oauth2/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OmniAuth
22
module OAuth2
3-
VERSION = "1.4.0"
3+
VERSION = "1.4.0".freeze
44
end
55
end

lib/omniauth/strategies/oauth2.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def query_string
5656

5757
credentials do
5858
hash = {"token" => access_token.token}
59-
hash.merge!("refresh_token" => access_token.refresh_token) if access_token.expires? && access_token.refresh_token
60-
hash.merge!("expires_at" => access_token.expires_at) if access_token.expires?
61-
hash.merge!("expires" => access_token.expires?)
59+
hash["refresh_token"] = access_token.refresh_token if access_token.expires? && access_token.refresh_token
60+
hash["expires_at"] = access_token.expires_at if access_token.expires?
61+
hash["expires"] = access_token.expires?
6262
hash
6363
end
6464

0 commit comments

Comments
 (0)