Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Feb 14, 2025
1 parent bb7180a commit 281566e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/versions_vulkan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function resolveVersion(version: string): Promise<string> {
* @return {*} {Promise<string>} The next lower version.
*/
export async function getLowerVersion(version: string, allVersions: AvailableVersions): Promise<string> {
if (allVersions === null || allVersions.versions.length === 0) {
if (!allVersions || !allVersions.versions || allVersions.versions.length === 0) {
throw new Error('No available versions found')
}
const sortedVersions = allVersions.versions.sort((a, b) => versions.compare(b, a))
Expand Down

0 comments on commit 281566e

Please sign in to comment.