*If the rpc call returns no value, default to a true boolean
This commit is contained in:
parent
a87660b678
commit
4121e23fd9
|
@ -175,6 +175,12 @@ export class RPCServer extends EventEmitter {
|
|||
|
||||
let rpcResult: RPCResponse = {};
|
||||
|
||||
if (ret === undefined) {
|
||||
ret = {
|
||||
data: true,
|
||||
};
|
||||
}
|
||||
|
||||
if (ret?.data) {
|
||||
rpcResult = { ...ret };
|
||||
|
||||
|
|
Loading…
Reference in New Issue