Remove redundant return

This commit is contained in:
atse 2023-07-18 11:44:44 +08:00
parent 30f6c4f829
commit 1d192f50c8

View File

@ -45,7 +45,6 @@ class Client:
"""Disconnect the client if connected, cancel connection if connecting"""
if self._connecting_task is not None:
self._connecting_task.cancel()
return
if self._writer is None:
return