Permalink
Browse files

Simplified.

  • Loading branch information...
1 parent 8ead972 commit 3d91851661195c93e73b9d04aafa3a5b5c531c7d @postmodern committed Jun 24, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/warnings/warnings.rb
View
@@ -42,8 +42,6 @@ def self.from_method(name)
when Regexp
lambda { |warning| warning.source_method =~ name }
else
- name = name.to_s
-
lambda { |warning| warning.source_method == name }
end

0 comments on commit 3d91851

Please sign in to comment.