From 74550455c597a0ef20fc40f04d9dc9ed00e2cf91 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Sun, 8 Aug 2010 11:10:08 +0000 Subject: Removing unnecessary guard in function clause (superceeded by pattern matching). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983380 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_rewrite.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_httpd_rewrite.erl b/src/couchdb/couch_httpd_rewrite.erl index 1756b7fb..391fa016 100644 --- a/src/couchdb/couch_httpd_rewrite.erl +++ b/src/couchdb/couch_httpd_rewrite.erl @@ -318,7 +318,7 @@ bind_method(_, _) -> %% to the current url by pattern matching bind_path([], [], Bindings) -> {ok, [], Bindings}; -bind_path([?MATCH_ALL], [Match|_RestMatch]=Rest, Bindings) when is_list(Rest) -> +bind_path([?MATCH_ALL], [Match|_RestMatch]=Rest, Bindings) -> {ok, Rest, [{?MATCH_ALL, Match}|Bindings]}; bind_path(_, [], _) -> fail; -- cgit v1.2.3