From 4debec0f967d429f3cc9011eff898bc5e5585bda Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 5 May 2015 21:07:31 +0200 Subject: Dialyzer clean. --- src/db.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/db.erl') diff --git a/src/db.erl b/src/db.erl index b0c6eaa..f53cd19 100644 --- a/src/db.erl +++ b/src/db.erl @@ -71,12 +71,12 @@ set_treesize(Size) -> ok. -spec get_by_indices(integer(), integer(), {sorted, true|false}) -> - [{non_neg_integer(), binary(), binary()}]. + [{non_neg_integer(), binary(), notfetched}]. get_by_indices(Start, End, {sorted, _Sorted}) -> get_by_indices_helper(Start, End). --spec get_by_index(binary()) -> notfound | - {non_neg_integer(), binary(), binary()}. +-spec get_by_index(non_neg_integer()) -> + {non_neg_integer(), binary(), noentry | binary()}. get_by_index(Index) -> LeafHash = leafhash_for_index(Index), Entry = entry_for_leafhash(LeafHash), -- cgit v1.1