mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-09 12:38:27 -05: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:
committed by
Michal Privoznik
parent
45b17385e7
commit
71cc4aacc2
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user