From aa105bdf4da58def20faa3d5064acb33b3d7247f Mon Sep 17 00:00:00 2001 From: marko1616 Date: Thu, 22 Aug 2024 05:49:43 +0800 Subject: [PATCH] Lint pass. --- tabby-electron/src/services/platform.service.ts | 2 +- tabby-ssh/src/components/sftpPanel.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tabby-electron/src/services/platform.service.ts b/tabby-electron/src/services/platform.service.ts index e8d20a0b..701136ec 100644 --- a/tabby-electron/src/services/platform.service.ts +++ b/tabby-electron/src/services/platform.service.ts @@ -231,7 +231,7 @@ export class ElectronPlatformService extends PlatformService { const files = await this.getAllFiles(folderPath) fileInfos = fileInfos.concat(files.map(file => ({ fullPath: file, - relativePath: path.posix.join(path.basename(folderPath), path.posix.relative(folderPath, file)) + relativePath: path.posix.join(path.basename(folderPath), path.posix.relative(folderPath, file)), }))) } diff --git a/tabby-ssh/src/components/sftpPanel.component.ts b/tabby-ssh/src/components/sftpPanel.component.ts index bee3a38b..129db3b4 100644 --- a/tabby-ssh/src/components/sftpPanel.component.ts +++ b/tabby-ssh/src/components/sftpPanel.component.ts @@ -188,7 +188,7 @@ export class SFTPPanelComponent { async uploadOneWithFolder (transfer: FileUpload): Promise { const savedPath = this.path const RelativePath = transfer.getRelativePath() - if (RelativePath == null){ + if (RelativePath == null) { return } @@ -201,7 +201,7 @@ export class SFTPPanelComponent { accumPath = path.posix.join(accumPath, pathParts) try { await this.sftp.mkdir(path.join(this.path, accumPath)) - } catch (e) { + } catch { // Intentionally ignoring errors from making duplicate dirs. } }