mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Fix default parameter for arrow functions
This commit is contained in:
parent
c633c3c7cb
commit
c59293cf03
1 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ const lbryProxy = new Proxy(Lbry, {
|
||||||
return target[name];
|
return target[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
return params =>
|
return (params = {}) =>
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
apiCall(name, params, resolve, reject);
|
apiCall(name, params, resolve, reject);
|
||||||
});
|
});
|
||||||
|
@ -213,7 +213,7 @@ Lbry.getAppVersionInfo = () =>
|
||||||
* Returns results from the file_list API method, plus dummy entries for pending publishes.
|
* Returns results from the file_list API method, plus dummy entries for pending publishes.
|
||||||
* (If a real publish with the same name is found, the pending publish will be ignored and removed.)
|
* (If a real publish with the same name is found, the pending publish will be ignored and removed.)
|
||||||
*/
|
*/
|
||||||
Lbry.file_list = params =>
|
Lbry.file_list = (params = {}) =>
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
const { name, channel_name: channelName, outpoint } = params;
|
const { name, channel_name: channelName, outpoint } = params;
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ Lbry.file_list = params =>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
Lbry.claim_list_mine = params =>
|
Lbry.claim_list_mine = (params = {}) =>
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
apiCall(
|
apiCall(
|
||||||
'claim_list_mine',
|
'claim_list_mine',
|
||||||
|
@ -270,7 +270,7 @@ Lbry.claim_list_mine = params =>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
Lbry.resolve = params =>
|
Lbry.resolve = (params = {}) =>
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
apiCall(
|
apiCall(
|
||||||
'resolve',
|
'resolve',
|
||||||
|
|
Loading…
Add table
Reference in a new issue