diff options
author | Jay Doane <jaydoane@apache.org> | 2021-09-01 16:46:21 -0700 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2021-09-01 16:46:21 -0700 |
commit | 532ca657f1a8d7f966578778709e5c6a0919842a (patch) | |
tree | 830723e757608e4740106f5bf7e40fcfb3b18a3b | |
parent | 23f012e7a1c45d9f9325a99e15103b4589f26d32 (diff) | |
download | couchdb-532ca657f1a8d7f966578778709e5c6a0919842a.tar.gz |
Fix 'clause cannot match' compiler warningfix-compiler-warning
Fixes this warning:
couchdb/src/couch_eval/src/couch_eval.erl:168: Warning: this clause cannot match because a previous clause at line 167 always matches
-rw-r--r-- | src/couch_eval/src/couch_eval.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couch_eval/src/couch_eval.erl b/src/couch_eval/src/couch_eval.erl index 1b1d7dc35..e5dc210c3 100644 --- a/src/couch_eval/src/couch_eval.erl +++ b/src/couch_eval/src/couch_eval.erl @@ -164,8 +164,8 @@ get_api_mod(Language) when is_binary(Language) -> config:get("couch_eval.languages", LangStr) end, case ModStr of - _ -> list_to_existing_atom(ModStr); - undefined -> erlang:error({unknown_eval_api_language, Language}) + undefined -> erlang:error({unknown_eval_api_language, Language}); + _ -> list_to_existing_atom(ModStr) end catch error:badarg -> |