Skip to content

Commit a9b51f0

Browse files
committed
Linting
1 parent 2b4a3a3 commit a9b51f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/api/versions/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function getPrimaryResponse(os: TPrimaryPlatforms): Promise<Result> {
3737

3838
return Object.entries(versions)
3939
.map(([version, { download_url }]) => ({ version, url: download_url }))
40-
} catch (e) {
40+
} catch (_) {
4141
throw Error("Unable to fetch primary data.")
4242
}
4343
}
@@ -86,7 +86,7 @@ async function getSecondaryResponse(os: TPrimaryPlatforms, currentResults: Resul
8686
})
8787

8888
return secondaryDownloads
89-
} catch (e) {
89+
} catch (_) {
9090
throw Error("Unable to fetch secondary data.")
9191
}
9292
}
@@ -145,7 +145,7 @@ export async function GET(request: NextRequest) {
145145
try {
146146
const versions = await getVersions(os)
147147
return Response.json(versions, { status: 200 })
148-
} catch (e) {
148+
} catch (_) {
149149
return new Response('Unable to fetch versions.', { status: 500 })
150150
}
151151
}

0 commit comments

Comments
 (0)