[tor-commits] [snowflake/master] Remove unreachable code

arlo at torproject.org arlo at torproject.org
Sat Feb 8 15:13:21 UTC 2020


commit 28cf70bb444f0745d4a5221850ad213ca6799e7d
Author: Arlo Breault <arlolra at gmail.com>
Date:   Sat Feb 8 10:12:43 2020 -0500

    Remove unreachable code
    
    go vet was complaining,
    
    common/websocketconn/websocketconn.go:56:2: unreachable code
---
 common/websocketconn/websocketconn.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/common/websocketconn/websocketconn.go b/common/websocketconn/websocketconn.go
index 73c2b25..46bb977 100644
--- a/common/websocketconn/websocketconn.go
+++ b/common/websocketconn/websocketconn.go
@@ -53,7 +53,6 @@ func readLoop(w io.Writer, ws *websocket.Conn) error {
 			return err
 		}
 	}
-	return nil
 }
 
 func writeLoop(ws *websocket.Conn, r io.Reader) error {



More information about the tor-commits mailing list