From 0e2c24b4aaed93a6768127f49d898ac427faa147 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 3 Jun 2023 01:01:06 +0200 Subject: [PATCH] refactor: convert helper to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/worker-options.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.34.1