You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 11:10:14 UTC

[18/35] git commit: Fix use of proplists:get_value/2

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 <pa...@gmail.com>
Authored: Wed Apr 24 14:15:26 2013 -0500
Committer: Robert Newson <rn...@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.