Format code

This commit is contained in:
Jonathan Tran
2025-07-01 23:27:21 -04:00
parent ab4ebbe78a
commit 538f3a322f

View File

@ -371,8 +371,7 @@ export function kclErrorsToDiagnostics(
sourceCode: string sourceCode: string
): CodeMirrorDiagnostic[] { ): CodeMirrorDiagnostic[] {
let nonFatal: CodeMirrorDiagnostic[] = [] let nonFatal: CodeMirrorDiagnostic[] = []
const errs = errors const errs = errors.flatMap((err) => {
.flatMap((err) => {
const diagnostics: CodeMirrorDiagnostic[] = [] const diagnostics: CodeMirrorDiagnostic[] = []
let message = err.msg let message = err.msg
if (err.kclBacktrace.length > 0) { if (err.kclBacktrace.length > 0) {