* Remove some pointless CachedUserInfo != null tests since these are already made in earlier code
parent
31ca3a8d4d
commit
e7427f21bd
|
@ -1200,7 +1200,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
"[PRIM INVENTORY]: " +
|
||||
"Avatar {0} cannot be found to add item",
|
||||
avatarId);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!profile.HasReceivedInventory)
|
||||
profile.FetchInventory();
|
||||
|
||||
|
@ -1845,8 +1847,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
userInfo.FetchInventory();
|
||||
}
|
||||
|
||||
if (userInfo != null)
|
||||
{
|
||||
// If we're returning someone's item, it goes back to the
|
||||
// owner's Lost And Found folder.
|
||||
// Delete is treated like return in this case
|
||||
|
@ -2014,7 +2014,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return assetID;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue