From 0360ad2dd028f0c2b9cf79b19c00fabdb4bba4f3 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Wed, 11 Dec 2019 16:34:01 +0100 Subject: [PATCH] lint --- terminus-ssh/src/api.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/terminus-ssh/src/api.ts b/terminus-ssh/src/api.ts index 5e8d9106..12742706 100644 --- a/terminus-ssh/src/api.ts +++ b/terminus-ssh/src/api.ts @@ -84,18 +84,6 @@ export class SSHSession extends BaseSession { this.scripts = connection.scripts || [] } - private openShellChannel (options): Promise { - return new Promise((resolve, reject) => { - this.ssh.shell({ term: 'xterm-256color' }, options, (err, shell) => { - if (err) { - reject(err) - } else { - resolve(shell) - } - }) - }) - } - async start () { this.open = true @@ -334,6 +322,18 @@ export class SSHSession extends BaseSession { return null } + private openShellChannel (options): Promise { + return new Promise((resolve, reject) => { + this.ssh.shell({ term: 'xterm-256color' }, options, (err, shell) => { + if (err) { + reject(err) + } else { + resolve(shell) + } + }) + }) + } + private executeUnconditionalScripts () { if (this.scripts) { for (const script of this.scripts) {