Skip to content

Commit

Permalink
style: correct style
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 30, 2023
1 parent 5a62b38 commit 9df6e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Roarr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 4 additions & 2 deletions src/utilities/isTruthy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const isTruthy = (value: string) => {
return [ 'true', 't', 'yes', 'y', 'on', '1' ].includes(value.trim().toLowerCase());
};
return ['true', 't', 'yes', 'y', 'on', '1'].includes(
value.trim().toLowerCase(),
);
};

0 comments on commit 9df6e6e

Please sign in to comment.