Fix wrong gen_server spec detected by Dialyzer

This commit is contained in:
Badlop
2021-02-23 13:51:13 +01:00
parent cc13971501
commit a43f2cc4c3

View File

@@ -826,7 +826,7 @@ do_init(Options) ->
%% {noreply, tuple()} | {noreply, tuple(), integer()} | %% {noreply, tuple()} | {noreply, tuple(), integer()} |
%% {stop, any(), any(), tuple()} | {stop, any(), tuple()}. %% {stop, any(), any(), tuple()} | {stop, any(), tuple()}.
-spec handle_call(any(), pid(), #state{}) -> {'reply', any(), #state{}} | {'stop', 'normal', 'ok', #state{}}. -spec handle_call(any(), {pid(), term()}, #state{}) -> {'reply', any(), #state{}} | {'stop', 'normal', 'ok', #state{}}.
handle_call(close, _From, State) -> handle_call(close, _From, State) ->
Reply = ok, Reply = ok,
{stop, normal, Reply, State}; {stop, normal, Reply, State};