Skip to content

Commit c19d088

Browse files
authored
chore: rename variable to follow coding style (#8385)
1 parent 6aee49b commit c19d088

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/utils/get_code_frame.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export default function get_code_frame(
1919
return lines
2020
.slice(frame_start, frame_end)
2121
.map((str, i) => {
22-
const isErrorLine = frame_start + i === line;
22+
const is_error_line = frame_start + i === line;
2323
const line_num = String(i + frame_start + 1).padStart(digits, ' ');
2424

25-
if (isErrorLine) {
25+
if (is_error_line) {
2626
const indicator = ' '.repeat(digits + 2 + tabs_to_spaces(str.slice(0, column)).length) + '^';
2727
return `${line_num}: ${tabs_to_spaces(str)}\n${indicator}`;
2828
}

0 commit comments

Comments
 (0)