Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 72640 invoked from network); 8 Aug 2010 11:11:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Aug 2010 11:11:29 -0000 Received: (qmail 90100 invoked by uid 500); 8 Aug 2010 11:11:29 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 89975 invoked by uid 500); 8 Aug 2010 11:11:26 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 89968 invoked by uid 99); 8 Aug 2010 11:11:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Aug 2010 11:11:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Aug 2010 11:11:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EE5F62388A02; Sun, 8 Aug 2010 11:10:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r983380 - /couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl Date: Sun, 08 Aug 2010 11:10:08 -0000 To: commits@couchdb.apache.org From: fdmanana@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100808111008.EE5F62388A02@eris.apache.org> 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;