Skip to content

Commit

Permalink
Remove catch clause variable type annotation, this is a feature of Ty…
Browse files Browse the repository at this point in the history
…peScript 4, but version 3.6.4 is currently being used. microsoft/TypeScript#36775
  • Loading branch information
mslosarek committed Feb 25, 2021
1 parent f171967 commit 356ceeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambdas/random-get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function handler(): Promise<RandomResponse | ErrorResponse> {
statusCode: 200,
body: payload,
}
} catch (err: unknown) {
} catch (err) {
return {
statusCode: 500,
message: 'Something went wrong',
Expand Down

0 comments on commit 356ceeb

Please sign in to comment.