Repository: couchdb-config Updated Branches: refs/heads/master b2818252e -> d4a178370
allow atoms too (chttpd, bind_address) Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/d4a17837 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/d4a17837 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/d4a17837 Branch: refs/heads/master Commit: d4a17837092467ca83eef1bb5d9327d6d69b0b55 Parents: b281825 Author: Robert Newson <[email protected]> Authored: Tue Jun 9 20:30:41 2015 +0100 Committer: Robert Newson <[email protected]> Committed: Tue Jun 9 20:30:41 2015 +0100 ---------------------------------------------------------------------- src/config.erl | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/d4a17837/src/config.erl ---------------------------------------------------------------------- diff --git a/src/config.erl b/src/config.erl index a24bb27..8e79296 100644 --- a/src/config.erl +++ b/src/config.erl @@ -144,6 +144,7 @@ get(Section, Key, Default) when is_list(Section), is_list(Key) -> [] when is_float(Default) -> Default; [] when is_integer(Default) -> Default; [] when is_list(Default) -> Default; + [] when is_atom(Default) -> Default; [] -> error(badarg); [{_, Match}] -> Match end.
