Unverified Commit 5b2dc6c1 authored by yann300's avatar yann300 Committed by GitHub

add missing await

parent 9bc06c2a
...@@ -158,7 +158,7 @@ class FileManager extends Plugin { ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment