aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_ws.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_ws.erl')
-rw-r--r--src/gun_ws.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_ws.erl b/src/gun_ws.erl
index a2271a9..8be93e8 100644
--- a/src/gun_ws.erl
+++ b/src/gun_ws.erl
@@ -64,7 +64,7 @@ do_check_options([{closing_timeout, infinity}|Opts]) ->
do_check_options(Opts);
do_check_options([{closing_timeout, T}|Opts]) when is_integer(T), T > 0 ->
do_check_options(Opts);
-do_check_options([{compress, B}|Opts]) when B =:= true; B =:= false ->
+do_check_options([{compress, B}|Opts]) when is_boolean(B) ->
do_check_options(Opts);
do_check_options([{default_protocol, M}|Opts]) when is_atom(M) ->
do_check_options(Opts);
@@ -81,7 +81,7 @@ do_check_options([Opt={protocols, L}|Opts]) when is_list(L) ->
end;
do_check_options([{reply_to, P}|Opts]) when is_pid(P) ->
do_check_options(Opts);
-do_check_options([{silence_pings, B}|Opts]) when B =:= true; B =:= false ->
+do_check_options([{silence_pings, B}|Opts]) when is_boolean(B) ->
do_check_options(Opts);
do_check_options([{user_opts, _}|Opts]) ->
do_check_options(Opts);