mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-285268: Code simplification
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
f64fd58970
commit
713877b49e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user