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:11 UTC

[15/35] git commit: Fix proplists:lookup/2 check

Fix proplists:lookup/2 check

Apparently someone was smoking something strong when they designed the
API of the proplists module. lookup/2 returns none when a key isn't
found which does not at all match get_value/2 which returns undefined.


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/6e4f69ef
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/tree/6e4f69ef
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/diff/6e4f69ef

Branch: refs/heads/windsor-merge
Commit: 6e4f69efa11fce639d8545f88cbe0b60ffa6f99f
Parents: 34aeaee
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Apr 24 14:10:20 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Jul 30 17:41:18 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/6e4f69ef/src/couch_event_listener.erl
----------------------------------------------------------------------
diff --git a/src/couch_event_listener.erl b/src/couch_event_listener.erl
index ac8114e..cbe754f 100644
--- a/src/couch_event_listener.erl
+++ b/src/couch_event_listener.erl
@@ -123,7 +123,7 @@ maybe_name_process(Options) ->
                 {false, Pid} ->
                     erlang:error({already_started, Pid})
             end;
-        undefined ->
+        none ->
             ok
     end.