mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-24 06:05:51 +00:00
Simplify getServerInfo response
This commit is contained in:
@@ -23,11 +23,11 @@ function isConnected() {
|
||||
}
|
||||
|
||||
function getServerInfo(callback) {
|
||||
this.remote.requestServerInfo((error, info) => {
|
||||
this.remote.requestServerInfo((error, response) => {
|
||||
if (error) {
|
||||
callback(new common.errors.RippledNetworkError(error.message));
|
||||
} else {
|
||||
callback(null, info);
|
||||
callback(null, response.info);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user