couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r992070 - /couchdb/trunk/src/couchdb/couch_httpd_db.erl
Date Thu, 02 Sep 2010 19:33:23 GMT
Author: rnewson
Date: Thu Sep  2 19:33:23 2010
New Revision: 992070

URL: http://svn.apache.org/viewvc?rev=992070&view=rev
Log:
fix warnings in couch_httpd_db.erl

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

Modified: couchdb/trunk/src/couchdb/couch_httpd_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_db.erl?rev=992070&r1=992069&r2=992070&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_db.erl Thu Sep  2 19:33:23 2010
@@ -1086,14 +1086,14 @@ db_attachment_req(Req, _Db, _DocId, _Fil
 
 parse_ranges(undefined, _Len) ->
     undefined;
-parse_ranges(fail, Len) ->
+parse_ranges(fail, _Len) ->
     undefined;
 parse_ranges(Ranges, Len) ->
     parse_ranges(Ranges, Len, []).
 
 parse_ranges([], _Len, Acc) ->
     lists:reverse(Acc);
-parse_ranges([{From, To}|_], Len, _Acc) when is_integer(From) andalso is_integer(To) andalso
To < From ->
+parse_ranges([{From, To}|_], _Len, _Acc) when is_integer(From) andalso is_integer(To) andalso
To < From ->
     throw(requested_range_not_satisfiable);
 parse_ranges([{From, To}|Rest], Len, Acc) when is_integer(To) andalso To >= Len ->
     parse_ranges([{From, Len-1}] ++ Rest, Len, Acc);



Mime
View raw message