0
Fork 0
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:
Ali Sabil 2013-07-02 11:02:32 +02:00
parent 4edef3c45c
commit 373f2e8134

View file

@ -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 ->