Skip to content

Commit dade744

Browse files
committed
remove redundant Handler cast
1 parent 8c8cbcc commit dade744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/serverless/src/awslambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function tryPatchHandler(taskRoot: string, handlerPath: string): void {
156156
}
157157

158158
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
159-
(mod as HandlerModule)[functionName!] = wrapHandler(obj as Handler);
159+
(mod as HandlerModule)[functionName!] = wrapHandler(obj);
160160
}
161161

162162
/**

0 commit comments

Comments
 (0)