diff --git a/src/index.ts b/src/index.ts index f930e32..338c965 100644 --- a/src/index.ts +++ b/src/index.ts @@ -420,7 +420,7 @@ export class NodeSSH { channel.on('close', () => { let stdout = output.stdout.join('') let stderr = output.stderr.join('') - if (options.noTrim === false) { + if (options.noTrim !== true) { stdout = stdout.trim() stderr = stderr.trim() }