mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix lint
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
parent
95babe245c
commit
64467b08ce
@ -25,7 +25,7 @@ const telemetryDecoratorInjectable = getInjectable({
|
|||||||
const emitTelemetry = diForDecorator.inject(emitTelemetryInjectable);
|
const emitTelemetry = diForDecorator.inject(emitTelemetryInjectable);
|
||||||
|
|
||||||
const whiteList = diForDecorator.inject(
|
const whiteList = diForDecorator.inject(
|
||||||
telemetryWhiteListForFunctionsInjectable
|
telemetryWhiteListForFunctionsInjectable,
|
||||||
);
|
);
|
||||||
|
|
||||||
const shouldEmitTelemetry = shouldEmitTelemetryFor(whiteList);
|
const shouldEmitTelemetry = shouldEmitTelemetryFor(whiteList);
|
||||||
@ -61,9 +61,8 @@ const telemetryDecoratorInjectable = getInjectable({
|
|||||||
injectionToken: instantiationDecoratorToken,
|
injectionToken: instantiationDecoratorToken,
|
||||||
});
|
});
|
||||||
|
|
||||||
const shouldEmitTelemetryFor = (whiteList: string[]) => (
|
const shouldEmitTelemetryFor =
|
||||||
injectable: Injectable<any, any, any>,
|
(whiteList: string[]) => (injectable: Injectable<any, any, any>) =>
|
||||||
) =>
|
|
||||||
injectable.tags?.includes("emit-telemetry") ||
|
injectable.tags?.includes("emit-telemetry") ||
|
||||||
whiteList.includes(injectable.id);
|
whiteList.includes(injectable.id);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user