You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2020/02/19 14:08:41 UTC
[couchdb] branch fdb-mango-indexes updated: code clean up again
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch fdb-mango-indexes
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/fdb-mango-indexes by this push:
new 9e06f2b code clean up again
9e06f2b is described below
commit 9e06f2b4ee22ce5fd5287b37b4b79f32d77a5ea7
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Wed Feb 19 16:08:27 2020 +0200
code clean up again
---
src/mango/src/mango_fdb.erl | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/mango/src/mango_fdb.erl b/src/mango/src/mango_fdb.erl
index 7c2810f..99660ac 100644
--- a/src/mango/src/mango_fdb.erl
+++ b/src/mango/src/mango_fdb.erl
@@ -64,9 +64,8 @@ get_build_vs(TxDb, DDoc) ->
} = TxDb,
Key = build_vs_key(TxDb, DDoc),
EV = erlfdb:wait(erlfdb:get(Tx, Key)),
- case EV of
- not_found -> not_found;
- EV -> erlfdb_tuple:unpack(EV)
+ if EV == not_found -> not_found; true ->
+ erlfdb_tuple:unpack(EV)
end.