Skip to content

Commit 62e50df

Browse files
author
Ben Parli
committed
explicit return from watchHandler
1 parent bb2bd27 commit 62e50df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func watchHandler(response http.ResponseWriter, req *http.Request, list *memberl
8484
for {
8585
select {
8686
case <-notify:
87-
break
87+
return
8888

8989
case <-listener.Chan():
9090
jsonBytes, err = json.Marshal(state.ByService())

0 commit comments

Comments
 (0)