]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/client_application.rb
Prefer string interpolation to concatenation
[rails.git] / app / models / client_application.rb
index 4e3dffb998aba0081a61dd56b145420f47a7f3df..ee39c294b934bab921dc919bcf9b202037acb67f 100644 (file)
@@ -56,8 +56,7 @@ class ClientApplication < ApplicationRecord
     signature = OAuth::Signature.build(request, options, &block)
     return false unless OauthNonce.remember(signature.request.nonce, signature.request.timestamp)
 
-    value = signature.verify
-    value
+    signature.verify
   rescue OAuth::Signature::UnknownSignatureMethod
     false
   end
@@ -67,7 +66,7 @@ class ClientApplication < ApplicationRecord
   end
 
   def oauth_server
-    @oauth_server ||= OAuth::Server.new("https://" + Settings.server_url)
+    @oauth_server ||= OAuth::Server.new("https://#{Settings.server_url}")
   end
 
   def credentials