Skip to content

Commit e8ba2cd

Browse files
committed
fixup
1 parent 785bcc0 commit e8ba2cd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

qasync/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,7 @@ def _use_qeventloop(loop_factory):
833833
yield loop
834834
finally:
835835
loop.close()
836-
if old_loop is not None:
837-
asyncio.set_event_loop(old_loop)
836+
asyncio.set_event_loop(old_loop)
838837

839838
# A run function matching the signature of asyncio.run
840839
def run(main_coro, *, debug=None, loop_factory=None):

0 commit comments

Comments
 (0)