Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Eslint auto-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 3, 2024
1 parent 0f985cb commit 51ebb10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/DirectoryRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { deserialize, member, struct, types as t } from 'utilium';
import { Directory } from './Directory.js';
import { SLComponentFlags } from './SLComponentRecord.js';
import { FileFlags, rockRidgeIdentifier } from './constants.js';
import { CLEntry, EREntry, NMEntry, NMFlags, RREntry, SLEntry, SPEntry, SystemUseEntry, constructSystemUseEntries } from './entries.js';
import type { SystemUseEntry} from './entries.js';
import { CLEntry, EREntry, NMEntry, NMFlags, RREntry, SLEntry, SPEntry, constructSystemUseEntries } from './entries.js';
import { ShortFormDate } from './utils.js';
import type { TextDecoder as TTextDecoder } from 'util';

Expand Down Expand Up @@ -215,7 +216,7 @@ export class DirectoryRecord {
}

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

0 comments on commit 51ebb10

Please sign in to comment.