Fix sonarjs prefer-single-boolean-return

This commit is contained in:
Bill Thornton
2022-10-06 01:13:06 -04:00
parent bb86ab7f27
commit b426b6e2bf
18 changed files with 52 additions and 187 deletions
+1 -5
View File
@@ -356,11 +356,7 @@ export class ComicsPlayer {
}
canPlayItem(item) {
if (item.Path && (item.Path.endsWith('cbz') || item.Path.endsWith('cbr'))) {
return true;
}
return false;
return item.Path && (item.Path.endsWith('cbz') || item.Path.endsWith('cbr'));
}
}