Remove unnecessary assert

First of all, the method that was being called has asserts of its own,
so it's guaranteed to either succeed or crash the program with
AssertionError. Second, asserts are optimized out by the interpreter
when -O is passed. Therefore, this code is buggy because it sometimes
wouldn't be run, but we need the side effects.
This commit is contained in:
AJ Jordan 2019-04-08 15:34:39 -04:00
parent df48c749c4
commit 047cfbc407
No known key found for this signature in database
GPG Key ID: 26794034633DBBC0

View File

@ -51,7 +51,7 @@ def _run_qrexec_repo(service, arg=''):
def _manage_repos(repolist, action):
for i in repolist:
assert _run_qrexec_repo('qubes.repos.' + action, i) == 'ok\n'
_run_qrexec_repo('qubes.repos.' + action, i) == 'ok\n'
def _handle_dom0_updates_combobox(idx):
idx += 1