Don't call `setFileContent` 2 times

pull/5370/head
yann300 5 years ago committed by GitHub
parent 99f5f4a9f5
commit d35d674f61
  1. 1
      src/app/files/fileManager.js

@ -355,7 +355,6 @@ class FileManager extends Plugin {
if (this.currentRequest) { if (this.currentRequest) {
const canCall = await this.askUserPermission('writeFile', '') const canCall = await this.askUserPermission('writeFile', '')
if (canCall) { if (canCall) {
this._setFileInternal(path, content)
// inform the user about modification after permission is granted and even if permission was saved before // inform the user about modification after permission is granted and even if permission was saved before
toaster(yo` toaster(yo`
<div> <div>

Loading…
Cancel
Save