couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [18/35] git commit: Fix use of proplists:get_value/2
Date Fri, 01 Aug 2014 09:10:14 GMT
Fix use of proplists:get_value/2

It returns undefined when the key isn't found, not false.


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

Branch: refs/heads/windsor-merge
Commit: ecd110a4e645e4e35bd0681dfbe293b0d94f8fa3
Parents: 634658d
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Wed Apr 24 14:15:26 2013 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Jul 30 17:41:40 2014 +0100

----------------------------------------------------------------------
 src/couch_event_listener.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/blob/ecd110a4/src/couch_event_listener.erl
----------------------------------------------------------------------
diff --git a/src/couch_event_listener.erl b/src/couch_event_listener.erl
index ca2bf29..04d5fc1 100644
--- a/src/couch_event_listener.erl
+++ b/src/couch_event_listener.erl
@@ -212,7 +212,7 @@ name_register({local, Name}=LN) ->
 get_all_dbnames(Options) ->
     case proplists:get_value(all_dbs, Options) of
         true -> all_dbs;
-        false -> get_all_dbnames(Options, [])
+        _ -> get_all_dbnames(Options, [])
     end.
 
 


Mime
View raw message