Cleanup array.length checks and for() to forEach()

This commit is contained in:
djmaze 2020-07-28 12:35:41 +02:00
parent db5751cd00
commit 82bed1ed80
24 changed files with 135 additions and 169 deletions

View file

@ -111,11 +111,11 @@ class AdvancedSearchPopupView extends AbstractViewNext {
isPart.push('flagged');
}
if (0 < hasPart.length) {
if (hasPart.length) {
result.push('has:' + hasPart.join(','));
}
if (0 < isPart.length) {
if (isPart.length) {
result.push('is:' + isPart.join(','));
}