From 58f984b9d904e13be2869f2220dfeed1569e8b8f Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Mon, 20 Apr 2020 10:38:48 +0000 Subject: [PATCH] Fixed linting error --- src/app/files/fileManager.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index 5b371de95e..c6d554acc8 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -89,7 +89,6 @@ class FileManager extends Plugin { file () { const file = this.currentFile() - if (!file) throw createError({ code: 'ENOENT', message: 'No file selected' }) return file } @@ -235,7 +234,7 @@ class FileManager extends Plugin { rmdir (path) { this._handleExists(path, `Cannot remove directory ${path}`) this._handleIsDir(path, `Cannot remove directory ${path}`) - + const provider = this.fileProviderOf(path) return provider.remove(path)