mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
fix(judge): replace 'let' with 'const' for variables that are never reassigned
This commit is contained in:
parent
4ad9bac50b
commit
c52748734f
@ -51,8 +51,8 @@ async function compileCode(container: Docker.Container, filePath: string, fileNa
|
||||
return reject(new Error("Stream is undefined"));
|
||||
}
|
||||
|
||||
let stdoutChunks: string[] = [];
|
||||
let stderrChunks: string[] = [];
|
||||
const stdoutChunks: string[] = [];
|
||||
const stderrChunks: string[] = [];
|
||||
|
||||
const stdoutStream = new Writable({
|
||||
write(chunk, encoding, callback) {
|
||||
@ -102,8 +102,8 @@ async function runCode(container: Docker.Container, fileName: string) {
|
||||
return reject(new Error("Stream is undefined"));
|
||||
}
|
||||
|
||||
let stdoutChunks: string[] = [];
|
||||
let stderrChunks: string[] = [];
|
||||
const stdoutChunks: string[] = [];
|
||||
const stderrChunks: string[] = [];
|
||||
|
||||
const stdoutStream = new Writable({
|
||||
write(chunk, encoding, callback) {
|
||||
|
Loading…
Reference in New Issue
Block a user