Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions src/lib/ParamServerApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,10 @@ class ParamServerApiClient {
];

return new Promise((resolve, reject) => {
this._xmlrpcClient.methodCall('hasParam', data, (err, resp) => {
if (err || resp[0] !== 1) {
reject(err, resp);
}
else {
// resp[2] is whether it actually has param and presumably all anyone cares about
resolve(resp[2]);
}
});
this._call('hasParam', data, (resp) => {
// resp[2] is whether it actually has param and presumably all anyone cares about
resolve(resp[2]);
}, reject);
});
}

Expand All @@ -106,15 +101,10 @@ class ParamServerApiClient {
];

return new Promise((resolve, reject) => {
this._xmlrpcClient.methodCall('getParamNames', data, (err, resp) => {
if (err || resp[0] !== 1) {
reject(err, resp);
}
else {
// resp[2] is parameter name list and presumably all anyone cares about
resolve(resp[2]);
}
});
this._call('getParamNames', data, (resp) => {
// resp[2] is parameter name list and presumably all anyone cares about
resolve(resp[2]);
}, reject);
});
}
}
Expand Down