chore: remove unnecessary destructuring
Signed-off-by: Carl-Erik Bergström <cbergstrom@spotify.com>
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user