always return a promise from Mecab.invoke
This commit is contained in:
parent
43fad608fb
commit
89c6ef54b0
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user