Skip to content

Commit

Permalink
Remove unneeded type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 27, 2024
1 parent ae0e3cc commit 45b2a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iso/DirectoryRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class DirectoryRecord {
}

protected _rockRidgeFilename(isoData: Uint8Array): string | null {
const nmEntries = this.getSUEntries(isoData).filter(e => e instanceof NMEntry) as NMEntry[];
const nmEntries = this.getSUEntries(isoData).filter(e => e instanceof NMEntry);
if (nmEntries.length === 0 || nmEntries[0].flags & (NMFlags.CURRENT | NMFlags.PARENT)) {
return null;
}
Expand Down

0 comments on commit 45b2a03

Please sign in to comment.