You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/08/08 13:10:08 UTC

svn commit: r983380 - /couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl

Author: fdmanana
Date: Sun Aug  8 11:10:08 2010
New Revision: 983380

URL: http://svn.apache.org/viewvc?rev=983380&view=rev
Log:
Removing unnecessary guard in function clause (superceeded by pattern matching).

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl?rev=983380&r1=983379&r2=983380&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl Sun Aug  8 11:10:08 2010
@@ -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;