aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Shrier <[email protected]>2018-10-04 00:25:25 -0600
committerLoïc Hoguin <[email protected]>2018-10-04 08:36:39 +0200
commit6b974d4a50bbf6b811d74c15c845f511bd1cf1a6 (patch)
tree848179999b3533ae429c85865a3b4a0a1d8cb9e3
parent9b8ed47d789412b0021bfc1f94f1c17c387c721c (diff)
downloadranch-6b974d4a50bbf6b811d74c15c845f511bd1cf1a6.tar.gz
ranch-6b974d4a50bbf6b811d74c15c845f511bd1cf1a6.tar.bz2
ranch-6b974d4a50bbf6b811d74c15c845f511bd1cf1a6.zip
Fix inconsistent naming of filter_user_options/2 argument
-rw-r--r--src/ranch.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ranch.erl b/src/ranch.erl
index a0055e0..2664fd8 100644
--- a/src/ranch.erl
+++ b/src/ranch.erl
@@ -421,12 +421,12 @@ filter_user_options([Opt = {Key, _}|Tail], DisallowedKeys) ->
filter_user_options(Tail, DisallowedKeys)
end;
%% Special option forms.
-filter_user_options([inet|Tail], AllowedKeys) ->
- [inet|filter_user_options(Tail, AllowedKeys)];
-filter_user_options([inet6|Tail], AllowedKeys) ->
- [inet6|filter_user_options(Tail, AllowedKeys)];
-filter_user_options([Opt = {raw, _, _, _}|Tail], AllowedKeys) ->
- [Opt|filter_user_options(Tail, AllowedKeys)];
+filter_user_options([inet|Tail], DisallowedKeys) ->
+ [inet|filter_user_options(Tail, DisallowedKeys)];
+filter_user_options([inet6|Tail], DisallowedKeys) ->
+ [inet6|filter_user_options(Tail, DisallowedKeys)];
+filter_user_options([Opt = {raw, _, _, _}|Tail], DisallowedKeys) ->
+ [Opt|filter_user_options(Tail, DisallowedKeys)];
filter_user_options([Opt|Tail], DisallowedKeys) ->
filter_options_warning(Opt),
filter_user_options(Tail, DisallowedKeys);