Apply style suggestions from code review
Co-authored-by: Mark McDowall <markus.mcd5@gmail.com>
This commit is contained in:
parent
69f771ad5e
commit
151c9d8bc4
|
@ -202,15 +202,18 @@ export const filterPredicates = {
|
||||||
if (seasonNumber <= 0) {
|
if (seasonNumber <= 0) {
|
||||||
return acc;
|
return acc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (monitored) {
|
if (monitored) {
|
||||||
acc.monitoredCount++;
|
acc.monitoredCount++;
|
||||||
} else {
|
} else {
|
||||||
acc.unmonitoredCount++;
|
acc.unmonitoredCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, { monitoredCount: 0, unmonitoredCount: 0 });
|
}, { monitoredCount: 0, unmonitoredCount: 0 });
|
||||||
|
|
||||||
let seasonsMonitoredStatus = 'partial';
|
let seasonsMonitoredStatus = 'partial';
|
||||||
|
|
||||||
if (monitoredCount === 0) {
|
if (monitoredCount === 0) {
|
||||||
seasonsMonitoredStatus = 'none';
|
seasonsMonitoredStatus = 'none';
|
||||||
} else if (unmonitoredCount === 0) {
|
} else if (unmonitoredCount === 0) {
|
||||||
|
|
Loading…
Reference in New Issue