]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/client_application.rb
Fix rubocop style issues
[rails.git] / app / models / client_application.rb
index b1d3d945e2e79146a079daaf4004c53dcdf35696..34856f82b2f5a863b185a44f1fe37a4fb404841e 100644 (file)
@@ -19,11 +19,7 @@ class ClientApplication < ActiveRecord::Base
 
   def self.find_token(token_key)
     token = OauthToken.find_by_token(token_key, :include => :client_application)
-    if token && token.authorized?
-      token
-    else
-      nil
-    end
+    token if token && token.authorized?
   end
 
   def self.verify_request(request, options = {}, &block)