don't use async/await for fn return promise

pull/1/head
yann300 6 years ago
parent 9dbc3b8a6c
commit 35881c70af
  1. 4
      src/lib/cmdInterpreterAPI.js

@ -41,8 +41,8 @@ class CmdInterpreterAPI {
'remix.debugHelp()': 'Display help message for debugging' 'remix.debugHelp()': 'Display help message for debugging'
} }
} }
async call (message) { call (message) {
return await this._components.terminal.externalApi.request(message) return this._components.terminal.externalApi.request(message)
} }
log () { arguments[0] != null ? this._components.terminal.commands.html(arguments[0]) : this._components.terminal.commands.html(arguments[1]) } log () { arguments[0] != null ? this._components.terminal.commands.html(arguments[0]) : this._components.terminal.commands.html(arguments[1]) }
highlight (rawLocation) { highlight (rawLocation) {

Loading…
Cancel
Save