Make it clear that we intent to use | over ||
This commit is contained in:
parent
d045df3da8
commit
84e441d808
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue