From: Jérôme Benoit Date: Fri, 2 Jun 2023 23:01:06 +0000 (+0200) Subject: refactor: convert helper to arrow function X-Git-Tag: v2.5.3~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0e2c24b4aaed93a6768127f49d898ac427faa147;p=poolifier.git refactor: convert helper to arrow function Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/worker-options.ts b/src/worker/worker-options.ts index 791f915d..e0cd392f 100644 --- a/src/worker/worker-options.ts +++ b/src/worker/worker-options.ts @@ -25,10 +25,10 @@ export type KillBehavior = keyof typeof KillBehaviors * @param value - Any value. * @returns `true` if `value` was strictly equals to `killBehavior`, otherwise `false`. */ -export function isKillBehavior ( +export const isKillBehavior = ( killBehavior: KB, value: unknown -): value is KB { +): value is KB => { return value === killBehavior }