Make it clear that we intent to use | over ||

This commit is contained in:
Lin Jen-Shin 2018-10-26 18:42:57 +08:00
parent d045df3da8
commit 84e441d808

View file

@ -8,8 +8,9 @@ module Gitlab
RoutesNotFound = Class.new(StandardError)
def draw(routes_name)
draw_ce(routes_name) | draw_ee(routes_name) ||
raise(RoutesNotFound.new("Cannot find #{routes_name}"))
drawn_any = draw_ce(routes_name) | draw_ee(routes_name)
drawn_any || raise(RoutesNotFound.new("Cannot find #{routes_name}"))
end
def draw_ce(routes_name)