Skip to content

Commit e44fb20

Browse files
Redundant
1 parent 37d2e49 commit e44fb20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/replit_river/v2/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ async def send_subscription[R, E, A](
828828
# Handle potential errors during communication
829829
try:
830830
async for item in output:
831-
if item.get("type", None) == "CLOSE":
831+
if item.get("type") == "CLOSE":
832832
break
833833
if not item.get("ok", False):
834834
try:
@@ -920,7 +920,7 @@ async def _encode_stream() -> None:
920920
# Handle potential errors during communication
921921
try:
922922
async for item in output:
923-
if "type" in item and item["type"] == "CLOSE":
923+
if item.get("type") == "CLOSE":
924924
break
925925
if not item.get("ok", False):
926926
try:

0 commit comments

Comments
 (0)