Skip to content

Commit

Permalink
Fix things I didn't break to shut up Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Nov 15, 2016
1 parent a9d4961 commit 0903ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/omniauth-oauth2/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module OmniAuth
module OAuth2
VERSION = "1.4.0"
VERSION = "1.4.0".freeze
end
end
6 changes: 3 additions & 3 deletions lib/omniauth/strategies/oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def query_string

credentials do
hash = {"token" => access_token.token}
hash.merge!("refresh_token" => access_token.refresh_token) if access_token.expires? && access_token.refresh_token
hash.merge!("expires_at" => access_token.expires_at) if access_token.expires?
hash.merge!("expires" => access_token.expires?)
hash["refresh_token"] = access_token.refresh_token if access_token.expires? && access_token.refresh_token
hash["expires_at"] = access_token.expires_at if access_token.expires?
hash["expires"] = access_token.expires?
hash
end

Expand Down

0 comments on commit 0903ac4

Please sign in to comment.