diff options
author | Robert Newson <rnewson@apache.org> | 2014-11-25 11:55:35 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2014-11-25 11:55:35 +0000 |
commit | 9728b342a58b8c59a749f605d17375666871042a (patch) | |
tree | e56a2e8e5d50ccd69ec9f657af1534659956f268 | |
parent | be52f7ea1cca9a7b845ac189715724b7e0c06d7e (diff) | |
download | couchdb-9728b342a58b8c59a749f605d17375666871042a.tar.gz |
Remove error-handling clause
The error tuple returned is not tested by the caller so it serves only
to crash the binary comprehension in an obscure way.
-rw-r--r-- | src/setup.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/setup.erl b/src/setup.erl index f774608a9..c48a616cb 100644 --- a/src/setup.erl +++ b/src/setup.erl @@ -165,10 +165,7 @@ get_port(Port) when is_integer(Port) -> get_port(Port) when is_list(Port) -> list_to_binary(Port); get_port(Port) when is_binary(Port) -> - Port; -get_port(Port) -> - {error, <<"invalid type for port">>}. - + Port. create_node_doc(Host, Port) -> {ok, Db} = couch_db:open_int(<<"nodes">>, []), |