Skip to content

Commit

Permalink
Fix fatal error when printing :sing_static warning.
Browse files Browse the repository at this point in the history
A regression introduced by refactoring the code from JsDuck::Class to
JsDuck::Lint.
  • Loading branch information
nene committed Sep 14, 2012
1 parent 0f4dd1b commit 46231c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsduck/lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def warn_singleton_statics
@relations.each do |cls|
if cls[:singleton]
cls.find_members({:local => true, :static => true}).each do |m|
warn(:sing_static, "Static members don't make sense in singleton class #{@doc[:name]}", m)
warn(:sing_static, "Static members don't make sense in singleton class #{cls[:name]}", m)
end
end
end
Expand Down

0 comments on commit 46231c8

Please sign in to comment.