Skip to content

Commit

Permalink
New rubocop-ast insures that ProcessedSource#comments is never nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and bbatsov committed Aug 10, 2020
1 parent 7fd90a4 commit a0ec799
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/rubocop/comment_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ def directive_on_comment_line?(comment)
end

def each_directive
return if processed_source.comments.nil?

processed_source.comments.each do |comment|
directive = directive_parts(comment)
next unless directive
Expand Down

0 comments on commit a0ec799

Please sign in to comment.