Make dialyzer happy

This commit is contained in:
Carlos Martín Nieto
2013-07-31 05:00:23 +02:00
parent 5e0aba3458
commit 73f31eac2f
8 changed files with 17 additions and 12 deletions

View File

@@ -27,7 +27,7 @@
%% @doc Create a new index. This index is empty and not associated to
%% any repository.
-spec new() -> pid().
-spec new() -> {ok, pid()} | ignore | {error, term()}.
new() ->
{ok, Handle} = geef_nif:index_new(),
start_link(Handle).
@@ -66,6 +66,7 @@ stop(Pid) ->
gen_server:call(Pid, stop).
%% @private
-spec start_link(term()) -> {ok, pid()} | ignore | {error, term()}.
start_link(Handle) ->
gen_server:start_link(?MODULE, Handle, []).