domcapabilities: Remove redundant check

get_enum() will always succeed, so the first check is redundant

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-02-03 12:18:40 -05:00
parent c3e9db5f3a
commit 1498085ff9
1 changed files with 1 additions and 2 deletions

View File

@ -260,8 +260,7 @@ class DomainCapabilities(XMLBuilder):
"""
Return True if libvirt advertises support for UEFI loader
"""
return ("readonly" in self.os.loader.enum_names() and
"yes" in self.os.loader.get_enum("readonly").get_values())
return "yes" in self.os.loader.get_enum("readonly").get_values()
def supports_firmware_efi(self):
return "efi" in self.os.get_enum("firmware").get_values()