mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
bumped eslint
This commit is contained in:
@@ -18,6 +18,7 @@ export class SFTPCreateDirectoryModalComponent extends BaseComponent {
|
||||
create (): void {
|
||||
this.modalInstance.close(this.directoryName)
|
||||
}
|
||||
|
||||
cancel (): void {
|
||||
this.modalInstance.close('')
|
||||
}
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import * as C from 'constants'
|
||||
// eslint-disable-next-line @typescript-eslint/no-duplicate-imports, no-duplicate-imports
|
||||
import { Subject, Observable } from 'rxjs'
|
||||
import { posix as posixPath } from 'path'
|
||||
import { Injector, NgZone } from '@angular/core'
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import * as fs from 'mz/fs'
|
||||
import * as crypto from 'crypto'
|
||||
// eslint-disable-next-line @typescript-eslint/no-duplicate-imports, no-duplicate-imports
|
||||
import * as sshpk from 'sshpk'
|
||||
import colors from 'ansi-colors'
|
||||
import stripAnsi from 'strip-ansi'
|
||||
|
@@ -7,7 +7,7 @@ export class X11Socket {
|
||||
|
||||
static resolveDisplaySpec (spec?: string|null): SocketConnectOpts {
|
||||
// eslint-disable-next-line prefer-const, @typescript-eslint/no-unused-vars
|
||||
let [_, xHost, xDisplay] = /^(.+):(\d+)(?:.(\d+))$/.exec(spec ?? process.env.DISPLAY ?? 'localhost:0') ?? []
|
||||
let [_, xHost, xDisplay] = /^(.+):(\d+)(?:.(\d+))$/.exec(spec ?? process.env.DISPLAY ?? 'localhost:0') ?? [undefined, undefined, undefined]
|
||||
if (process.platform === 'win32') {
|
||||
xHost ??= 'localhost'
|
||||
} else {
|
||||
@@ -18,7 +18,7 @@ export class X11Socket {
|
||||
xHost = spec
|
||||
}
|
||||
|
||||
const display = parseInt(xDisplay || '0')
|
||||
const display = parseInt(xDisplay ?? '0')
|
||||
const port = display < 100 ? display + 6000 : display
|
||||
|
||||
if (xHost === 'unix') {
|
||||
|
@@ -53,6 +53,6 @@ export class CommonSFTPContextMenu extends SFTPContextMenuItemProvider {
|
||||
const modal = this.ngbModal.open(SFTPDeleteModalComponent)
|
||||
modal.componentInstance.item = item
|
||||
modal.componentInstance.sftp = session
|
||||
await modal.result.catch(() => {return})
|
||||
await modal.result.catch(() => null)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user