Skip to content

Commit

Permalink
Bump typescript from 5.5.4 to 5.6.2 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git authored Sep 16, 2024
2 parents 0025b30 + 3163745 commit 6c514b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@redocly/cli": "^1.25.2",
"@types/better-sqlite3": "^7.6.11",
"@types/node": "^22.5.5",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"dependencies": {
"argon2": "^0.41.1",
Expand Down
7 changes: 5 additions & 2 deletions src/resource/Artist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ namespace Artist {
const iterations = Math.min(ids.size, 100);
const iterator = ids.values();
for (let i = 0; i < iterations; ++i) {
const artist = this.get(iterator.next().value)!;
if (artist !== null) artists.push(artist);
const id = iterator.next().value;
if (id === undefined) continue;
const artist = this.get(id)!;
if (artist === null) continue;
artists.push(artist);
}
return artists;
}
Expand Down

0 comments on commit 6c514b8

Please sign in to comment.