Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Clem-Fern committed Apr 12, 2023
1 parent 268af88 commit b097379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tabby-serial/src/components/serialTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent<SerialProfile>
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-')) {
Expand Down
3 changes: 1 addition & 2 deletions tabby-ssh/src/components/sshTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ export class SSHTabComponent extends BaseTerminalTabComponent<SSHProfile> 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-')) {
Expand Down
2 changes: 1 addition & 1 deletion tabby-telnet/src/components/telnetTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent<TelnetProfile>
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-')) {
Expand Down

0 comments on commit b097379

Please sign in to comment.