diff options
author | 2023-05-28 23:13:24 +0200 | |
---|---|---|
committer | 2023-05-28 23:29:14 +0200 | |
commit | 33c9b6643f58a6930043f460d5bfdca4bc1f7222 (patch) | |
tree | f313935e30f7b90ea16e564e7171e2e72319ce29 /src/tools/jwt-parser/jwt-parser.service.ts | |
parent | 4d2b037dbe4e78aa90a4a6d9c7315dcf0a51fed9 (diff) | |
download | it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.tar.gz it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.tar.zst it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.zip |
chore(lint): switched to a better lint config
Diffstat (limited to 'src/tools/jwt-parser/jwt-parser.service.ts')
-rw-r--r-- | src/tools/jwt-parser/jwt-parser.service.ts | 8 |
1 files changed, 5 insertions, 3 deletions
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()}`; -}; +} |