add missing await

pull/5370/head
yann300 4 years ago committed by GitHub
parent d88275a2f4
commit 0b2b19b1d1
  1. 2
      apps/remix-ide/src/app/files/fileManager.js

@ -158,7 +158,7 @@ class FileManager extends Plugin {
await this._handleIsFile(path, `Cannot write file ${path}`)
return await this.setFileContent(path, data)
} else {
const ret = this.setFileContent(path, data)
const ret = await this.setFileContent(path, data)
this.emit('fileAdded', path)
return ret
}

Loading…
Cancel
Save