diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-21 16:31:14 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-21 16:31:14 -0600 |
commit | f40716f48a25809d197ba2abf32ce150b7b73efa (patch) | |
tree | 3356ea055ddee37517467c1f0ed4f4b98f655e6f /app/controllers/invites_controller.rb | |
parent | deb62183edbd9111691f62a4f6a9febb1fcd79f7 (diff) | |
download | gitlab-ce-f40716f48a25809d197ba2abf32ce150b7b73efa.tar.gz |
No more and/or
Diffstat (limited to 'app/controllers/invites_controller.rb')
-rw-r--r-- | app/controllers/invites_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 58964a0e65d..7625187c7be 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -42,9 +42,7 @@ class InvitesController < ApplicationController @token = params[:id] @member = Member.find_by_invite_token(@token) - unless @member - render_404 and return - end + return render_404 unless @member @member end |