Commit ec003d9e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Prefer unless over if not

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/builds/7606797
parent fb231533
...@@ -15,7 +15,7 @@ module Ci ...@@ -15,7 +15,7 @@ module Ci
def authenticate_build!(build) def authenticate_build!(build)
not_found! unless build not_found! unless build
forbidden! if !build_token_valid?(build) forbidden! unless build_token_valid?(build)
validate_build!(build) validate_build!(build)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment