summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2021-09-01 16:46:21 -0700
committerJay Doane <jay.s.doane@gmail.com>2021-09-02 10:00:36 -0700
commitd63ab21ad76fa76b799c069037beffc19d267b4a (patch)
tree830723e757608e4740106f5bf7e40fcfb3b18a3b
parent23f012e7a1c45d9f9325a99e15103b4589f26d32 (diff)
downloadcouchdb-d63ab21ad76fa76b799c069037beffc19d267b4a.tar.gz
Fix 'clause cannot match' 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.erl4
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 ->