Fix fallback to latest version in tools.ts

This commit is contained in:
Shivam Mathur
2025-11-25 17:27:09 +05:30
parent 3961404d06
commit 91d37511e3
3 changed files with 15 additions and 2 deletions

View File

@ -156,7 +156,7 @@ export async function filterList(tools_list: string[]): Promise<string[]> {
* @param data
*/
export async function getUrl(data: RS): Promise<string> {
if (data['version'] === 'latest') {
if ((data['version'] ?? 'latest') === 'latest') {
return [
data['domain'],
data['repository'],