1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove more nesting

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>

Co-authored-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Iku-turso 2023-03-23 15:03:12 +02:00
parent d47de73555
commit 2d8b4fcd78

View File

@ -50,7 +50,10 @@ const telemetryDecoratorInjectable = getInjectable({
const whiteListed = whiteListMap.get(currentContext.injectable.id);
if (whiteListed) {
if (!whiteListed) {
return instance(...args);
}
let params;
try {
@ -71,7 +74,6 @@ const telemetryDecoratorInjectable = getInjectable({
action: currentContext.injectable.id,
params,
});
}
return instance(...args);
};