Skip to content

Commit

Permalink
fix(lint): ensure unwaited promise explicitly voided
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Jun 2, 2024
1 parent 06c38c6 commit e6621de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/withLogTrail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const withLogTrail = <T extends (...args: any[]) => any>(
);

// remove the timeout when the operation completes, to prevent logging if completes before duration
result.finally(() => clearTimeout(onBreachTrigger));
void result.finally(() => clearTimeout(onBreachTrigger));
}

// define what to do when we have output
Expand Down

0 comments on commit e6621de

Please sign in to comment.