diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-10-26 18:42:57 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-10-26 18:43:33 +0800 |
commit | 84e441d808744fe084a81939e187e98ead23d7a8 (patch) | |
tree | 48a2c098f26a2ae9562aab8bf783b252f0508980 /lib | |
parent | d045df3da882fa8bcd0424df096cec0c61b1eaff (diff) | |
download | gitlab-ce-84e441d808744fe084a81939e187e98ead23d7a8.tar.gz |
Make it clear that we intent to use | over ||
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/patch/draw_route.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/patch/draw_route.rb b/lib/gitlab/patch/draw_route.rb index 1192274cafa..b00244a6e04 100644 --- a/lib/gitlab/patch/draw_route.rb +++ b/lib/gitlab/patch/draw_route.rb @@ -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) |