]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / oauth_controller.rb
index 734783a35eef61f4df429abfee6b1aa2fd9facf8..84bbcf1850e5c95cf6d6d925c0c009b3f7e83315 100644 (file)
@@ -63,9 +63,7 @@ class OauthController < ApplicationController
                                     "&oauth_token=#{@token.token}"
                                 end
 
-          unless @token.oauth10?
-            @redirect_url.query += "&oauth_verifier=#{@token.verifier}"
-          end
+          @redirect_url.query += "&oauth_verifier=#{@token.verifier}" unless @token.oauth10?
 
           redirect_to @redirect_url.to_s
         end