Commit 84e441d8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

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

parent d045df3d
...@@ -8,8 +8,9 @@ module Gitlab ...@@ -8,8 +8,9 @@ module Gitlab
RoutesNotFound = Class.new(StandardError) RoutesNotFound = Class.new(StandardError)
def draw(routes_name) def draw(routes_name)
draw_ce(routes_name) | draw_ee(routes_name) || drawn_any = draw_ce(routes_name) | draw_ee(routes_name)
raise(RoutesNotFound.new("Cannot find #{routes_name}"))
drawn_any || raise(RoutesNotFound.new("Cannot find #{routes_name}"))
end end
def draw_ce(routes_name) def draw_ce(routes_name)
......
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