Skip to content

Commit f4a2adc

Browse files
committed
explicit return false
1 parent 525453e commit f4a2adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/erblint-github/linters/custom_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def counter_correct?(processed_source)
4747
if offenses_count.zero?
4848
# have to adjust to get `\n` so we delete the whole line
4949
add_offense(processed_source.to_source_range(comment_node.loc.adjust(end_pos: 1)), "Unused erblint:counter comment for #{rule_name}", "") if comment_node
50-
return
50+
return false
5151
end
5252

5353
first_offense = @offenses[0]

0 commit comments

Comments
 (0)