Skip to content

Commit 0757eed

Browse files
Copilotna-trium-144
andcommitted
Improve comment clarity and use template literal for string formatting
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
1 parent 77635fe commit 0757eed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/terminal/wandbox/cpp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function cppRunFiles(
131131
if (output.message.includes(WANDBOX_PATH)) {
132132
onOutput({
133133
type: "trace",
134-
message: output.message.replace(WANDBOX_PATH + "/", ""),
134+
message: output.message.replace(`${WANDBOX_PATH}/`, ""),
135135
});
136136
}
137137
return;

app/terminal/wandbox/rust.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export async function rustRunFiles(
9999
message: output.message,
100100
});
101101
}
102-
traceLines.pop(); // Remove the processed line whether matched or not
102+
traceLines.pop(); // Remove the associated trace line (regardless of match)
103103
}
104104
}
105105
return;

0 commit comments

Comments
 (0)