Remove an unnecessary check in the if statement

This commit is contained in:
srikappa
2021-05-13 14:49:06 -07:00
parent 7d8180a3bb
commit 9328c944b2
@@ -644,8 +644,7 @@ namespace AzToolsFramework
// If the first entity id is a container entity id, then we need to mark its parent as the common owning instance because you
// cannot detete an instance from itself.
if (commonOwningInstance->get().GetContainerEntityId() == firstEntityIdToDelete &&
!IsLevelInstanceContainerEntity(firstEntityIdToDelete))
if (commonOwningInstance->get().GetContainerEntityId() == firstEntityIdToDelete)
{
commonOwningInstance = commonOwningInstance->get().GetParentInstance();
}