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 05:14:29 UTC
[couchdb] 01/01: Fix 'clause cannot match' compiler warning
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch fix-compiler-warning
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 532ca657f1a8d7f966578778709e5c6a0919842a
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 ->