From 33c9b6643f58a6930043f460d5bfdca4bc1f7222 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sun, 28 May 2023 23:13:24 +0200 Subject: chore(lint): switched to a better lint config --- src/tools/jwt-parser/jwt-parser.service.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/tools/jwt-parser/jwt-parser.service.ts') diff --git a/src/tools/jwt-parser/jwt-parser.service.ts b/src/tools/jwt-parser/jwt-parser.service.ts index f5eb04e..19edc5f 100644 --- a/src/tools/jwt-parser/jwt-parser.service.ts +++ b/src/tools/jwt-parser/jwt-parser.service.ts @@ -38,9 +38,11 @@ function getFriendlyValue({ claim, value }: { claim: string; value: unknown }) { .otherwise(() => undefined); } -const dateFormatter = (value: unknown) => { - if (_.isNil(value)) return undefined; +function dateFormatter(value: unknown) { + if (_.isNil(value)) { + return undefined; + } const date = new Date(Number(value) * 1000); return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`; -}; +} -- cgit v1.2.3