Skip to content

Commit

Permalink
Return iterator in Application#filterSaveData()
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Nov 26, 2024
1 parent 18a0121 commit 9de5847
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/runtime/src/switch/ns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,9 @@ export class Application {
});
}

*filterSaveData(
fn?: (saveData: SaveData) => boolean,
): Generator<SaveData, void> {
filterSaveData(fn?: (saveData: SaveData) => boolean) {
const id = getSaveDataOwnerId(new DataView(this.nacp));
yield* Iterator.from(SaveData).filter((s) => {
return Iterator.from(SaveData).filter((s) => {
if (s.applicationId !== id) return false;
return fn ? fn(s) : true;
});
Expand Down

0 comments on commit 9de5847

Please sign in to comment.