0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Remove a superfluous function clause in try_match

This commit is contained in:
Anthony Ramine 2011-05-09 13:03:22 +02:00
parent 420f5baf98
commit 094f5c1735

View file

@ -1,4 +1,5 @@
%% Copyright (c) 2011, Loïc Hoguin <essen@dev-extend.eu>
%% Copyright (c) 2011, Anthony Ramine <nox@dev-extend.eu>
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
@ -97,8 +98,6 @@ match_path(Path, [{PathMatch, Handler, Opts}|Tail], HostBinds) ->
-spec try_match(Type::host | path, List::path_tokens(), Match::match_rule())
-> {true, Binds::bindings()} | false.
try_match(_Type, _List, '_') ->
{true, []};
try_match(_Type, List, Match) when length(List) =/= length(Match) ->
false;
try_match(host, List, Match) ->