Spaces:
Running

ShreeshantXD commited on
Commit
d012f99
·
1 Parent(s): 4ec4472

fix: Replace ineffective break with return in WebSocket close handler

Browse files

SA4011 staticcheck warning - switch cases break implicitly in Go,
so break was a no-op. Using return to properly exit handleWebSocket
when client sends close message.

1 file changed +1 -1
main.go+1-1