Fix sonarjs prefer-single-boolean-return
This commit is contained in:
@@ -339,11 +339,7 @@ export class BookPlayer {
|
||||
}
|
||||
|
||||
canPlayItem(item) {
|
||||
if (item.Path && item.Path.endsWith('epub')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return item.Path && item.Path.endsWith('epub');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user