Skip to content

Commit a0ec799

Browse files
marcandrebbatsov
authored andcommitted
New rubocop-ast insures that ProcessedSource#comments is never nil.
1 parent 7fd90a4 commit a0ec799

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/rubocop/comment_config.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ def directive_on_comment_line?(comment)
128128
end
129129

130130
def each_directive
131-
return if processed_source.comments.nil?
132-
133131
processed_source.comments.each do |comment|
134132
directive = directive_parts(comment)
135133
next unless directive

0 commit comments

Comments
 (0)