From c19d0889c536eff76957a3a853bdefaa823423e0 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 15 Mar 2023 08:31:25 -0700 Subject: [PATCH] chore: rename variable to follow coding style (#8385) --- src/compiler/utils/get_code_frame.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/utils/get_code_frame.ts b/src/compiler/utils/get_code_frame.ts index 14ca44badb..f9a17b4f53 100644 --- a/src/compiler/utils/get_code_frame.ts +++ b/src/compiler/utils/get_code_frame.ts @@ -19,10 +19,10 @@ export default function get_code_frame( return lines .slice(frame_start, frame_end) .map((str, i) => { - const isErrorLine = frame_start + i === line; + const is_error_line = frame_start + i === line; const line_num = String(i + frame_start + 1).padStart(digits, ' '); - if (isErrorLine) { + if (is_error_line) { const indicator = ' '.repeat(digits + 2 + tabs_to_spaces(str.slice(0, column)).length) + '^'; return `${line_num}: ${tabs_to_spaces(str)}\n${indicator}`; }