Skip to content

Commit b90528b

Browse files
committed
Remove warning silence on Journey::Parser require
I assume this was originally [added][1] because `Parser` was generated by `racc`, and parser generators have historically emitted many Ruby warnings. However, now the parser is no longer generated by `racc` so the warning silencing is unnecessary (and could potentially cover up legitimate and fixable warnings in the hand written parser). [1]: rails/journey@53951dc
1 parent abb7035 commit b90528b

File tree

1 file changed

+0
-5
lines changed
  • actionpack/lib/action_dispatch/journey

1 file changed

+0
-5
lines changed

actionpack/lib/action_dispatch/journey/router.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
require "action_dispatch/journey/router/utils"
66
require "action_dispatch/journey/routes"
77
require "action_dispatch/journey/formatter"
8-
9-
before = $-w
10-
$-w = false
118
require "action_dispatch/journey/parser"
12-
$-w = before
13-
149
require "action_dispatch/journey/route"
1510
require "action_dispatch/journey/path/pattern"
1611

0 commit comments

Comments
 (0)