add missing await

pull/601/head
yann300 4 years ago committed by GitHub
parent 9bc06c2ab7
commit 5b2dc6c167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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}`) await this._handleIsFile(path, `Cannot write file ${path}`)
return await this.setFileContent(path, data) return await this.setFileContent(path, data)
} else { } else {
const ret = this.setFileContent(path, data) const ret = await this.setFileContent(path, data)
this.emit('fileAdded', path) this.emit('fileAdded', path)
return ret return ret
} }

Loading…
Cancel
Save