summaryrefslogtreecommitdiff
path: root/app/controllers/jwt_controller.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-14 19:45:33 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-14 19:45:33 -0500
commit8d445fe665df313c16a88c319fde9bdfb97339df (patch)
tree72607c1f47e66081e39bbe42d34369b96310e09d /app/controllers/jwt_controller.rb
parentf4f9184a01bc7442411bbcffd9b6a86784fa5f53 (diff)
downloadgitlab-ce-8d445fe665df313c16a88c319fde9bdfb97339df.tar.gz
Improve JwtController
Diffstat (limited to 'app/controllers/jwt_controller.rb')
-rw-r--r--app/controllers/jwt_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/jwt_controller.rb b/app/controllers/jwt_controller.rb
index 0edf084e9e4..f5aa5397ff1 100644
--- a/app/controllers/jwt_controller.rb
+++ b/app/controllers/jwt_controller.rb
@@ -9,7 +9,7 @@ class JwtController < ApplicationController
def auth
service = SERVICES[params[:service]]
- head :not_found unless service
+ return head :not_found unless service
result = service.new(@project, @user, auth_params).execute