mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Fix coding style in websocket_deflate_frame/3
This commit is contained in:
parent
4edef3c45c
commit
373f2e8134
1 changed files with 5 additions and 4 deletions
|
@ -662,7 +662,8 @@ websocket_opcode(close) -> 8;
|
|||
websocket_opcode(ping) -> 9;
|
||||
websocket_opcode(pong) -> 10.
|
||||
|
||||
-spec websocket_deflate_frame(opcode(), binary(), #state{}) -> {binary(), <<_:3>>, #state{}}.
|
||||
-spec websocket_deflate_frame(opcode(), binary(), #state{}) ->
|
||||
{binary(), <<_:3>>, #state{}}.
|
||||
websocket_deflate_frame(Opcode, Payload,
|
||||
State=#state{deflate_frame = DeflateFrame})
|
||||
when DeflateFrame =:= false orelse Opcode >= 8 ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue