From b0973791a8a012dc4ea602265333e916d1e63e74 Mon Sep 17 00:00:00 2001 From: Clem Date: Wed, 12 Apr 2023 23:52:25 +0200 Subject: [PATCH] lint --- tabby-serial/src/components/serialTab.component.ts | 2 +- tabby-ssh/src/components/sshTab.component.ts | 3 +-- tabby-telnet/src/components/telnetTab.component.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tabby-serial/src/components/serialTab.component.ts b/tabby-serial/src/components/serialTab.component.ts index 944df11b..c7dc6f15 100644 --- a/tabby-serial/src/components/serialTab.component.ts +++ b/tabby-serial/src/components/serialTab.component.ts @@ -84,7 +84,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent this.attachSessionHandler(this.session!.destroyed$, () => { if (this.frontend) { // Session was closed abruptly - if (this.config.store.terminal.behaviorOnSessionEnds == 'close') { + if (this.config.store.terminal.behaviorOnSessionEnds === 'close') { // Close the tab this.destroy() } else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) { diff --git a/tabby-ssh/src/components/sshTab.component.ts b/tabby-ssh/src/components/sshTab.component.ts index 14296ad5..4e681595 100644 --- a/tabby-ssh/src/components/sshTab.component.ts +++ b/tabby-ssh/src/components/sshTab.component.ts @@ -158,10 +158,9 @@ export class SSHTabComponent extends BaseTerminalTabComponent implem const session = this.session! this.attachSessionHandler(session.destroyed$, () => { if (this.frontend) { - this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` ${this.sshSession?.profile.options.host}: session closed\r\n`) - if (this.config.store.terminal.behaviorOnSessionEnds == 'close') { + if (this.config.store.terminal.behaviorOnSessionEnds === 'close') { // Close the tab this.destroy() } else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) { diff --git a/tabby-telnet/src/components/telnetTab.component.ts b/tabby-telnet/src/components/telnetTab.component.ts index 58e4e7fe..77b3ceb7 100644 --- a/tabby-telnet/src/components/telnetTab.component.ts +++ b/tabby-telnet/src/components/telnetTab.component.ts @@ -48,7 +48,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent this.attachSessionHandler(session.destroyed$, () => { if (this.frontend) { // Session was closed abruptly - if (this.config.store.terminal.behaviorOnSessionEnds == 'close') { + if (this.config.store.terminal.behaviorOnSessionEnds === 'close') { // Close the tab this.destroy() } else if (this.config.store.terminal.behaviorOnSessionEnds.startsWith('reconnect-or-')) {