From d35d674f6152e5bee8b512c5e939a5e94d6c34de Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 29 May 2020 11:59:21 +0200 Subject: [PATCH] Don't call `setFileContent` 2 times --- src/app/files/fileManager.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index 4a2d6a6f96..2d75ef6f67 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -355,7 +355,6 @@ class FileManager extends Plugin { if (this.currentRequest) { const canCall = await this.askUserPermission('writeFile', '') if (canCall) { - this._setFileInternal(path, content) // inform the user about modification after permission is granted and even if permission was saved before toaster(yo`