From 9df6e6e13a17179531d8abe421304554e9a2b6bd Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Mon, 30 Oct 2023 09:56:48 -0600 Subject: [PATCH] style: correct style --- src/Roarr.ts | 3 +-- src/utilities/isTruthy.ts | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Roarr.ts b/src/Roarr.ts index 3fe5729..a14312b 100644 --- a/src/Roarr.ts +++ b/src/Roarr.ts @@ -2,11 +2,10 @@ import { createLogger } from './factories/createLogger'; import { createMockLogger } from './factories/createMockLogger'; import { createRoarrInitialGlobalState } from './factories/createRoarrInitialGlobalState'; import { type MessageSerializer, type RoarrGlobalState } from './types'; -import { boolean } from 'boolean'; +import { isTruthy } from './utilities/isTruthy'; import fastJson from 'fast-json-stringify'; import createGlobalThis from 'globalthis'; import safeStringify from 'safe-stable-stringify'; -import { isTruthy } from './utilities/isTruthy'; const fastStringify = fastJson({ properties: { diff --git a/src/utilities/isTruthy.ts b/src/utilities/isTruthy.ts index 80881c4..dceb3b4 100644 --- a/src/utilities/isTruthy.ts +++ b/src/utilities/isTruthy.ts @@ -1,3 +1,5 @@ export const isTruthy = (value: string) => { - return [ 'true', 't', 'yes', 'y', 'on', '1' ].includes(value.trim().toLowerCase()); -}; \ No newline at end of file + return ['true', 't', 'yes', 'y', 'on', '1'].includes( + value.trim().toLowerCase(), + ); +};