CA-285268: Code simplification

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2018-03-16 14:00:07 +00:00
parent f64fd58970
commit 713877b49e

View File

@ -322,17 +322,8 @@ namespace XenAdmin.Wizards.PatchingWizard
if (update == null || update.Attributes == null)
return null;
var uuid = "";
foreach (XmlAttribute attrib in update.Attributes)
{
if (attrib.Name == "uuid")
{
uuid = attrib.Value;
break;
}
}
return Updates.FindPatchAlertByUuid(uuid);
var uuid = update.Attributes["uuid"];
return uuid != null ? Updates.FindPatchAlertByUuid(uuid.Value) : null;
}
private void PageLeaveCancelled(string message)