always return a promise from Mecab.invoke

This commit is contained in:
siikamiika 2019-11-24 02:34:16 +02:00
parent 43fad608fb
commit 89c6ef54b0

View File

@ -70,7 +70,7 @@ class Mecab {
invoke(action, params) {
if (this.port === null) {
return {};
return Promise.resolve({});
}
return new Promise((resolve, reject) => {
const sequence = this.sequence++;