Skip to content

Commit c509393

Browse files
committed
🐛 Fix small compilation bug
1 parent 1db4e20 commit c509393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coding_style/all/l1_code_line_content.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CodeLineContent < CodingStyle
4242
}
4343
content.scan(CONDITION_AND_ASSIGNMENT_REGEX).each { |match|
4444
row, _ = get_row_column(content.split("\n"), match.begin)
45-
errors.add(CodingStyleErrorInfo.new(self, file_path, row, _, " (Condition and an assignment on the same line)".magenta))
45+
errors.add(CodingStyleErrorInfo.new(self, file_path, row, -1, " (Condition and an assignment on the same line)".magenta))
4646
}
4747
content.scan(SEVERAL_SEMI_COLONS).each { |match|
4848
if match[0] !~ /#define|for[\s]*\(/

0 commit comments

Comments
 (0)