Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress non-parenthesis warnings (fluent#4590)
This patch will suppress following warnings: ``` $ ruby -w -I"lib:test" test/plugin/test_out_http.rb test/plugin/test_out_http.rb:445: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator test/plugin/test_out_http.rb:446: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator test/plugin/test_out_http.rb:482: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator test/plugin/test_out_http.rb:483: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator ``` Seems we will see this warning If we omit the parentheses in the method and pass a regular expression as an argument. ``` irb(main):001> $VERBOSE=true => true irb(main):002> p /m/ (irb):2: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator /m/ => /m/ ``` Signed-off-by: Watson <watson1978@gmail.com>
- Loading branch information