Skip to content

Commit 356ceeb

Browse files
committed
Remove catch clause variable type annotation, this is a feature of TypeScript 4, but version 3.6.4 is currently being used. microsoft/TypeScript#36775
1 parent f171967 commit 356ceeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lambdas/random-get.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function handler(): Promise<RandomResponse | ErrorResponse> {
2222
statusCode: 200,
2323
body: payload,
2424
}
25-
} catch (err: unknown) {
25+
} catch (err) {
2626
return {
2727
statusCode: 500,
2828
message: 'Something went wrong',

0 commit comments

Comments
 (0)