couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [15/35] git commit: Fix proplists:lookup/2 check
Date Fri, 01 Aug 2014 09:10:11 GMT
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 <paul.joseph.davis@gmail.com>
Authored: Wed Apr 24 14:10:20 2013 -0500
Committer: Robert Newson <rnewson@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.
 


Mime
View raw message