You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/09/02 17:00:46 UTC
[couchdb] branch main updated: Fix 'clause cannot match' compiler
warning
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new d63ab21 Fix 'clause cannot match' compiler warning
d63ab21 is described below
commit d63ab21ad76fa76b799c069037beffc19d267b4a
Author: Jay Doane <ja...@apache.org>
AuthorDate: Wed Sep 1 16:46:21 2021 -0700
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
---
src/couch_eval/src/couch_eval.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/couch_eval/src/couch_eval.erl b/src/couch_eval/src/couch_eval.erl
index 1b1d7dc..e5dc210 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 ->