Merge cast with type check

This commit is contained in:
Cinder Biscuits
2020-05-09 08:41:30 -05:00
parent ad32b578d2
commit 823e05df77
23 changed files with 82 additions and 96 deletions

View File

@@ -62,9 +62,9 @@ namespace OpenMetaverse.TestClient.Commands.Inventory.Shell
if (item.Name == nextName || item.UUID.ToString() == nextName)
{
found = true;
if (item is InventoryFolder)
if (item is InventoryFolder folder)
{
currentFolder = item as InventoryFolder;
currentFolder = folder;
}
else
{