From 641876bc263519dd5eeb5947819ce2bbe7133312 Mon Sep 17 00:00:00 2001 From: Johan Nyman Date: Thu, 2 Nov 2023 09:43:15 +0100 Subject: [PATCH] chore: lint bug fix --- packages/core/src/lib.ts | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/lib.ts b/packages/core/src/lib.ts index 0c44342..99a6dab 100644 --- a/packages/core/src/lib.ts +++ b/packages/core/src/lib.ts @@ -9,7 +9,7 @@ export function literal(o: T): T { export function describeEvent(event: string, args: any[]): string { const metadataStr = (metadata: any) => { - if (typeof metadata == 'object') return `${metadata}` + if (typeof metadata !== 'object') return `${metadata}` if (metadata === null) return 'null' const strs: string[] = [] diff --git a/yarn.lock b/yarn.lock index 556a464..be62887 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1598,7 +1598,7 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@sofie-automation/code-standard-preset@~2.5.2": +"@sofie-automation/code-standard-preset@^2.5.2": version "2.5.2" resolved "https://registry.yarnpkg.com/@sofie-automation/code-standard-preset/-/code-standard-preset-2.5.2.tgz#468bd1c4c32be976431f50f76ff54329c2cfffe0" integrity sha512-xzAMUp/FHvNwkMC2pl8isOVLcWUmoQ9Mw1FdiYwDSHyOkLmbJ/nwYrl6iWR/7LbkGk45RAKkbkfFyhsqTh4xzA==