Skip to content
Browse files

Wrapped an argument in parentheses to silence JRuby "Ambiguous First …

…Argument" warnings
  • Loading branch information...
1 parent 40e2c2e commit e54e97146c474cabc56e1da616b65393cc2b91bf @nbrochu committed Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/log4r/formatter/patternformatter.rb
View
2 lib/log4r/formatter/patternformatter.rb
@@ -123,7 +123,7 @@ def pf.format_date
# MDC matches, need to be able to handle String, Symbol or Number
match6sub = /[\{\}\"]/
- mdcmatches = match[6].match /\{(:?)(\d*)(.*)\}/
+ mdcmatches = match[6].match(/\{(:?)(\d*)(.*)\}/)
if ( mdcmatches[1] == "" && mdcmatches[2] == "" )
match6sub = /[\{\}]/ # don't remove surrounding "'s if String

0 comments on commit e54e971

Please sign in to comment.
Something went wrong with that request. Please try again.