couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject git commit: Silence compiler warning
Date Wed, 25 Apr 2012 23:03:48 GMT
Updated Branches:
  refs/heads/master c83860c62 -> bdb50bef5


Silence compiler warning


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/bdb50bef
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/bdb50bef
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/bdb50bef

Branch: refs/heads/master
Commit: bdb50bef5de0d78e3f256e2aadda1c6013d15325
Parents: c83860c
Author: Paul Joseph Davis <davisp@apache.org>
Authored: Wed Apr 25 18:03:16 2012 -0500
Committer: Paul Joseph Davis <davisp@apache.org>
Committed: Wed Apr 25 18:03:16 2012 -0500

----------------------------------------------------------------------
 src/couchdb/couch_httpd_rewrite.erl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/bdb50bef/src/couchdb/couch_httpd_rewrite.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_httpd_rewrite.erl b/src/couchdb/couch_httpd_rewrite.erl
index 207891a..3e97258 100644
--- a/src/couchdb/couch_httpd_rewrite.erl
+++ b/src/couchdb/couch_httpd_rewrite.erl
@@ -121,7 +121,7 @@ handle_rewrite_req(#httpd{
 
     MaxRewritesList = couch_config:get("httpd", "rewrite_limit", "100"),
     MaxRewrites = list_to_integer(MaxRewritesList),
-    NRewrites = case get(couch_rewrite_count) of
+    case get(couch_rewrite_count) of
         undefined ->
             put(couch_rewrite_count, 1);
         NumRewrites when NumRewrites < MaxRewrites ->


Mime
View raw message