couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r983380 - /couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl
Date Sun, 08 Aug 2010 11:10:08 GMT
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;



Mime
View raw message