BigW Consortium Gitlab

Commit ec003d9e by Lin Jen-Shin

Prefer unless over if not

parent fb231533
......@@ -15,7 +15,7 @@ module Ci
def authenticate_build!(build)
not_found! unless build
forbidden! if !build_token_valid?(build)
forbidden! unless build_token_valid?(build)
validate_build!(build)
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