chore: remove unnecessary destructuring

Signed-off-by: Carl-Erik Bergström <cbergstrom@spotify.com>
This commit is contained in:
Carl-Erik Bergström
2023-08-22 10:07:08 +02:00
parent 922ec60ce5
commit 8c1ca06e1f
@@ -71,12 +71,7 @@ const getMemberOfEntityRefs = (owner: Entity): string[] => {
}),
);
const {
kind,
metadata: { namespace, name },
} = owner;
return [...ownerGroupsNames, stringifyEntityRef({ kind, namespace, name })];
return [...ownerGroupsNames, stringifyEntityRef(owner)];
};
const isEntity = (entity: Entity | undefined): entity is Entity =>