Explorar o código

fix(ws): simplify return statement in WebSocket close handling

Daniel Chew hai 7 meses
pai
achega
1d28b8d59f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/hermes/server/src/api/ws.rs

+ 1 - 1
apps/hermes/server/src/api/ws.rs

@@ -349,7 +349,7 @@ where
                     .await?;
                 self.sender.close().await?;
                 self.closed = true;
-                return Ok(());
+                Ok(())
             },
             _ = self.exit.changed() => {
                 self.sender.close().await?;