Permalink
Browse files

Remove manual "return true" from AS::TZ match method

  • Loading branch information...
1 parent 824a58a commit 6e07658fcf4a3ffc815b2de18d594a62666f5e62 @carlosantoniodasilva carlosantoniodasilva committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/values/time_zone.rb
@@ -239,7 +239,7 @@ def <=>(zone)
# Compare #name and TZInfo identifier to a supplied regexp, returning +true+
# if a match is found.
def =~(re)
- return true if name =~ re || MAPPING[name] =~ re
+ re === name || re === MAPPING[name]
end
# Returns a textual representation of this time zone.

0 comments on commit 6e07658

Please sign in to comment.