mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
virsh: util: remove 'else' branch after return
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
45b17385e7
commit
71cc4aacc2
@ -137,8 +137,7 @@ virshDomainState(vshControl *ctl,
|
||||
/* fall back to virDomainGetInfo if virDomainGetState is not supported */
|
||||
if (virDomainGetInfo(dom, &info) < 0)
|
||||
return -1;
|
||||
else
|
||||
return info.state;
|
||||
return info.state;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user