Skip to content

Commit

Permalink
Make pylint happy
Browse files Browse the repository at this point in the history
- Drop unused 'asyncio'
- Drop useless 'else' after return

(cherry picked from commit 43786e1)
  • Loading branch information
fepitre authored and marmarek committed Apr 18, 2020
1 parent 3e6b0ab commit f4f91ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubes/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ def xid(self):
try:
if self.is_running():
return self.libvirt_domain.ID()
else:
return -1

return -1
except libvirt.libvirtError as e:
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
return -1
Expand Down

0 comments on commit f4f91ff

Please sign in to comment.