Skip to content

Commit

Permalink
[melobot] Remove unused empty string detection
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Apr 30, 2024
1 parent a42521c commit b66438f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/melobot/io/forward_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ async def _listen(self) -> None:
if self.logger._check_level("DEBUG"):
self.logger.obj(raw, "收到上报,未格式化的字符串")

if raw == "":
continue

event = self._event_builder.try_build(raw)
if event is None:
resp = ActionResponse(raw)
Expand Down
3 changes: 0 additions & 3 deletions src/melobot/io/reverse_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ async def _listen(self, ws: "websockets.server.WebSocketServerProtocol") -> None
if self.logger._check_level("DEBUG"):
self.logger.obj(raw, "收到上报,未格式化的字符串")

if raw == "":
continue

event = self._event_builder.try_build(raw)
if event is None:
resp = ActionResponse(raw)
Expand Down

0 comments on commit b66438f

Please sign in to comment.