Add prefer optional chaining rule
This commit is contained in:
@@ -312,7 +312,7 @@ export class PdfPlayer {
|
||||
}
|
||||
|
||||
canPlayItem(item) {
|
||||
return item.Path && item.Path.endsWith('pdf');
|
||||
return item.Path?.endsWith('pdf');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user