mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
ESLint
This commit is contained in:
parent
db5e7a886a
commit
8712b2fdab
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,7 @@ let BookWyrm = new class {
|
||||||
// This concerns 'review', 'quotation', 'comment'
|
// This concerns 'review', 'quotation', 'comment'
|
||||||
count = allowedStatusTypes.reduce(function(prev, currentKey) {
|
count = allowedStatusTypes.reduce(function(prev, currentKey) {
|
||||||
const currentValue = count_by_type[currentKey] | 0;
|
const currentValue = count_by_type[currentKey] | 0;
|
||||||
|
|
||||||
return prev + currentValue;
|
return prev + currentValue;
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
|
@ -143,6 +144,7 @@ let BookWyrm = new class {
|
||||||
function(prev, currentKey) {
|
function(prev, currentKey) {
|
||||||
const currentValue =
|
const currentValue =
|
||||||
count_by_everything_else[currentKey] | 0
|
count_by_everything_else[currentKey] | 0
|
||||||
|
|
||||||
return prev + currentValue;
|
return prev + currentValue;
|
||||||
},
|
},
|
||||||
count
|
count
|
||||||
|
|
Loading…
Reference in a new issue