Skip to content

Commit

Permalink
Avoid calling super in warn.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 25, 2011
1 parent 00e6885 commit 098b41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/warnings/mixin.rb
Expand Up @@ -43,7 +43,7 @@ def warnings?
# #
def warn(message) def warn(message)
if warnings? if warnings?
super(message) if $DEBUG $stderr.puts(message) if $DEBUG


$WARNINGS << Warning.new(message,caller) $WARNINGS << Warning.new(message,caller)
end end
Expand Down

0 comments on commit 098b41b

Please sign in to comment.