Browse Source

Fix a Dialyzer warning in cow_ws

Loïc Hoguin 9 years ago
parent
commit
ad39742b05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cow_ws.erl

+ 1 - 1
src/cow_ws.erl

@@ -315,7 +315,7 @@ frag_state(_, 1, _, FragState) -> FragState.
 %% Empty last frame of compressed message.
 %% Empty last frame of compressed message.
 parse_payload(Data, _, Utf8State, _, _, 0, {fin, _, << 1:1, 0:2 >>},
 parse_payload(Data, _, Utf8State, _, _, 0, {fin, _, << 1:1, 0:2 >>},
 		#{inflate := Inflate, inflate_takeover := TakeOver}, _) ->
 		#{inflate := Inflate, inflate_takeover := TakeOver}, _) ->
-	zlib:inflate(Inflate, << 0, 0, 255, 255 >>),
+	_ = zlib:inflate(Inflate, << 0, 0, 255, 255 >>),
 	case TakeOver of
 	case TakeOver of
 		no_takeover -> zlib:inflateReset(Inflate);
 		no_takeover -> zlib:inflateReset(Inflate);
 		takeover -> ok
 		takeover -> ok