diff options
-rw-r--r-- | src/db.erl | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -91,9 +91,13 @@ get_by_entry_hash(EntryHash) -> noentry -> notfound; LeafHash -> - Entry = entry_for_leafhash(LeafHash), - %% Don't fetch index, isn't used and might not exist - {notfetched, LeafHash, Entry} + case entry_for_leafhash(LeafHash) of + noentry -> + notfound; + Entry -> + %% Don't fetch index, isn't used and might not exist + {notfetched, LeafHash, Entry} + end end. %%%%%%%%%%%%%%%%%%%% |