diff options
author | Robert Newson <rnewson@apache.org> | 2010-09-02 19:33:23 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-09-02 19:33:23 +0000 |
commit | 1c1c7d8359053b8b4b473903b7fadd354064c032 (patch) | |
tree | 7a1cb17b66b33ca879eb9d0eade601a592b707c5 | |
parent | cce81d89f7630f7d9b95757419d4ab91faf8217e (diff) |
fix warnings in couch_httpd_db.erl
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@992070 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/couchdb/couch_httpd_db.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl index 4002a6a9..93e93892 100644 --- a/src/couchdb/couch_httpd_db.erl +++ b/src/couchdb/couch_httpd_db.erl @@ -1086,14 +1086,14 @@ db_attachment_req(Req, _Db, _DocId, _FileNameParts) -> 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); |