From d069f39bc7783e14d4cb5219316388d28df3b231 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Wed, 18 Sep 2019 21:04:18 +0200 Subject: [PATCH] lint --- terminus-ssh/src/components/sshModal.component.ts | 2 +- terminus-ssh/src/components/sshTab.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terminus-ssh/src/components/sshModal.component.ts b/terminus-ssh/src/components/sshModal.component.ts index 242c45b0..a9d315c6 100644 --- a/terminus-ssh/src/components/sshModal.component.ts +++ b/terminus-ssh/src/components/sshModal.component.ts @@ -87,7 +87,7 @@ export class SSHModalComponent { let connections = this.connections if (this.quickTarget) { - connections = connections.filter(connection => (connection.name + connection.group).toLowerCase().includes(this.quickTarget)) + connections = connections.filter((connection: SSHConnection) => (connection.name + connection.group!).toLowerCase().includes(this.quickTarget)) } for (const connection of connections) { diff --git a/terminus-ssh/src/components/sshTab.component.ts b/terminus-ssh/src/components/sshTab.component.ts index f7209480..fc166cc4 100644 --- a/terminus-ssh/src/components/sshTab.component.ts +++ b/terminus-ssh/src/components/sshTab.component.ts @@ -46,7 +46,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent { this.write(`Connecting to ${this.connection.host}`) const interval = setInterval(() => this.write('.'), 500) try { - await this.ssh.connectSession(this.session, message => { + await this.ssh.connectSession(this.session, (message: string) => { this.write('\r\n' + message) }) } catch (e) {