Skip to content

Commit e22bf38

Browse files
committed
Fix warnings and errors
1 parent e502b15 commit e22bf38

File tree

73 files changed

+3789
-3820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3789
-3820
lines changed

config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const config = {
88
WEBPACK_WEB_PORT: process.env.WEBPACK_WEB_PORT,
99
WEBPACK_ELECTRON_PORT: process.env.WEBPACK_ELECTRON_PORT,
1010
WEB_SERVER_PORT: process.env.WEB_SERVER_PORT,
11-
LBRY_WEB_API: process.env.LBRY_WEB_API, //api.na-backend.odysee.com',
11+
LBRY_WEB_API: process.env.LBRY_WEB_API, // api.na-backend.odysee.com',
1212
LBRY_WEB_PUBLISH_API: process.env.LBRY_WEB_PUBLISH_API,
13-
LBRY_API_URL: process.env.LBRY_API_URL, //api.lbry.com',
14-
LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, //player.odysee.com
13+
LBRY_API_URL: process.env.LBRY_API_URL, // api.lbry.com',
14+
LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, // player.odysee.com
1515
LBRY_WEB_BUFFER_API: process.env.LBRY_WEB_BUFFER_API,
1616
SEARCH_SERVER_API: process.env.SEARCH_SERVER_API,
1717
CLOUD_CONNECT_SITE_NAME: process.env.CLOUD_CONNECT_SITE_NAME,

electron/devServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mainInstance.waitUntilValid(() => {
5757
console.log(data.toString());
5858
});
5959

60-
process.on('SIGINT', function () {
60+
process.on('SIGINT', function() {
6161
console.log('Killing threads...');
6262

6363
child.kill('SIGINT');

extras/lbryinc/lbryio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
3737
}
3838

3939
if (response)
40-
return response.json().then(json => {
40+
{ return response.json().then(json => {
4141
let error;
4242
if (json.error) {
4343
error = new Error(json.error);
@@ -46,7 +46,7 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
4646
}
4747
error.response = response; // This is primarily a hack used in actions/user.js
4848
return Promise.reject(error);
49-
});
49+
}); }
5050
}
5151

5252
function makeRequest(url, options) {

extras/recsys/recsys.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const recsys = {
5454
* @param parentClaimId: string,
5555
* @param newClaimId: string,
5656
*/
57-
onClickedRecommended: function (parentClaimId, newClaimId) {
57+
onClickedRecommended: function(parentClaimId, newClaimId) {
5858
const parentEntry = recsys.entries[parentClaimId] ? recsys.entries[parentClaimId] : null;
5959
const parentUuid = parentEntry['uuid'];
6060
const parentRecommendedClaims = parentEntry['recClaimIds'] || [];
@@ -72,7 +72,7 @@ const recsys = {
7272
* Page was loaded. Get or Create entry and populate it with default data, plus recommended content, recsysId, etc.
7373
* Called from recommendedContent component
7474
*/
75-
onRecsLoaded: function (claimId, uris) {
75+
onRecsLoaded: function(claimId, uris) {
7676
if (window.store) {
7777
const state = window.store.getState();
7878
if (!recsys.entries[claimId]) {
@@ -91,7 +91,7 @@ const recsys = {
9191
* @param: claimId: string
9292
* @param: parentUuid: string (optional)
9393
*/
94-
createRecsysEntry: function (claimId, parentUuid) {
94+
createRecsysEntry: function(claimId, parentUuid) {
9595
if (window.store && claimId) {
9696
const state = window.store.getState();
9797
const user = selectUser(state);
@@ -128,7 +128,7 @@ const recsys = {
128128
* @param claimId
129129
* @param isTentative
130130
*/
131-
sendRecsysEntry: function (claimId, isTentative) {
131+
sendRecsysEntry: function(claimId, isTentative) {
132132
const shareTelemetry =
133133
IS_WEB || (window && window.store && selectDaemonSettings(window.store.getState()).share_usage_data);
134134

@@ -151,7 +151,7 @@ const recsys = {
151151
* @param claimId
152152
* @param event
153153
*/
154-
onRecsysPlayerEvent: function (claimId, event, isEmbedded) {
154+
onRecsysPlayerEvent: function(claimId, event, isEmbedded) {
155155
if (!recsys.entries[claimId]) {
156156
recsys.createRecsysEntry(claimId);
157157
// do something to show it's floating or autoplay
@@ -162,7 +162,7 @@ const recsys = {
162162
recsys.entries[claimId].events.push(event);
163163
recsys.log('onRecsysPlayerEvent', claimId);
164164
},
165-
log: function (callName, claimId) {
165+
log: function(callName, claimId) {
166166
if (recsys.debug) {
167167
console.log(`Call: ***${callName}***, ClaimId: ${claimId}, Recsys Entries`, Object.assign({}, recsys.entries));
168168
}
@@ -172,7 +172,7 @@ const recsys = {
172172
* Player closed. Check to see if primaryUri = playingUri
173173
* if so, send the Entry.
174174
*/
175-
onPlayerDispose: function (claimId, isEmbedded) {
175+
onPlayerDispose: function(claimId, isEmbedded) {
176176
if (window.store) {
177177
const state = window.store.getState();
178178
const playingUri = selectPlayingUri(state);
@@ -221,7 +221,7 @@ const recsys = {
221221
* Navigate event
222222
* Send all claimIds that aren't currently playing.
223223
*/
224-
onNavigate: function () {
224+
onNavigate: function() {
225225
if (window.store) {
226226
const state = window.store.getState();
227227
const playingUri = selectPlayingUri(state);

flow-typed/npm/async-exit-hook_vx.x.x.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ declare module 'async-exit-hook' {
2323
* needed.
2424
*/
2525

26-
2726
// Filename aliases
2827
declare module 'async-exit-hook/index' {
2928
declare module.exports: $Exports<'async-exit-hook'>;

flow-typed/npm/bluebird_v3.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ declare class Bluebird$Defer {
322322
reject: (value: any) => any;
323323
}
324324

325-
declare module "bluebird" {
325+
declare module 'bluebird' {
326326
declare module.exports: typeof Bluebird$Promise;
327327

328328
declare type Disposable<T> = Bluebird$Disposable<T>;

flow-typed/npm/chalk_v2.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// From: https://github.com/chalk/chalk/blob/master/index.js.flow
55

6-
declare module "chalk" {
6+
declare module 'chalk' {
77
declare type TemplateStringsArray = $ReadOnlyArray<string>;
88

99
declare type Level = $Values<{

flow-typed/npm/classnames_v2.x.x.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ type $npm$classnames$Classes =
88
| void
99
| null;
1010

11-
declare module "classnames" {
11+
declare module 'classnames' {
1212
declare module.exports: (
1313
...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]>
1414
) => string;
1515
}
1616

17-
declare module "classnames/bind" {
17+
declare module 'classnames/bind' {
1818
declare module.exports: $Exports<"classnames">;
1919
}
2020

21-
declare module "classnames/dedupe" {
21+
declare module 'classnames/dedupe' {
2222
declare module.exports: $Exports<"classnames">;
2323
}

flow-typed/npm/decompress_vx.x.x.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ declare module 'decompress' {
2323
* needed.
2424
*/
2525

26-
2726
// Filename aliases
2827
declare module 'decompress/index' {
2928
declare module.exports: $Exports<'decompress'>;

flow-typed/npm/del_v3.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type $npm$del$Options = {
3737
absolute?: boolean
3838
};
3939

40-
declare module "del" {
40+
declare module 'del' {
4141
declare class Del {
4242
(
4343
patterns: $npm$del$Patterns,

0 commit comments

Comments
 (0)