Skip to content

Commit 84af81c

Browse files
committed
chore: reduce whitespace changes
1 parent 91071ab commit 84af81c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/devices/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async def connect_loop() -> None:
161161
start_attempt.set_result(True)
162162
self._has_connected = True
163163
self._ready_callbacks(self)
164-
break
164+
return
165165
except RoborockException as e:
166166
if not start_attempt.done():
167167
start_attempt.set_result(False)
@@ -172,7 +172,7 @@ async def connect_loop() -> None:
172172
if not start_attempt.done():
173173
start_attempt.set_exception(e)
174174
self._logger.exception("Uncaught error during connect: %s", e)
175-
break
175+
return
176176
except asyncio.CancelledError:
177177
self._logger.debug("connect_loop was cancelled for device %s", self.duid)
178178
finally:

0 commit comments

Comments
 (0)