Skip to content

Commit a15b1af

Browse files
committed
ref: Serverless domainify util can return void
1 parent fb38292 commit a15b1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/serverless/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function getActiveDomain(): domain.Domain | null {
2929
* @param fn function to run
3030
* @returns function which runs in the newly created domain or in the existing one
3131
*/
32-
export function domainify<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R {
32+
export function domainify<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R | void {
3333
return (...args) => {
3434
if (getActiveDomain()) {
3535
return fn(...args);

0 commit comments

Comments
 (0)