sisoe24 / Nuke-Tools

Use const declarations for variables that are never reassigned JS-0242
Anti-pattern
Minor
5 months ago3 years old
'w' is never reassigned. Use 'const' instead
84}
85
86async function captureStdout(fn: any) {
87    let w = process.stdout.write,88        buffer = "";
89    process.stdout.write = (s) => {
90        buffer = buffer + s;