From 9ab363adfe879714a50e8c356b542e2922de9872 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Thu, 21 Mar 2013 14:12:03 -0400 Subject: [PATCH] Indention --- src/wterl_conn.erl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/wterl_conn.erl b/src/wterl_conn.erl index a97a4ee..afe91ee 100644 --- a/src/wterl_conn.erl +++ b/src/wterl_conn.erl @@ -81,14 +81,15 @@ init([]) -> {ok, #state{}}. handle_call({open, Dir, Config, Caller}, _From, #state{conn=undefined}=State) -> - {Reply, NState} = case wterl:conn_open(Dir, wterl:config_to_bin(Config)) of - {ok, ConnRef}=OK -> - Monitor = erlang:monitor(process, Caller), - true = ets:insert(wterl_ets, {Monitor, Caller}), - {OK, State#state{conn = ConnRef}}; - Error -> - {Error, State} - end, + {Reply, NState} = + case wterl:conn_open(Dir, wterl:config_to_bin(Config)) of + {ok, ConnRef}=OK -> + Monitor = erlang:monitor(process, Caller), + true = ets:insert(wterl_ets, {Monitor, Caller}), + {OK, State#state{conn = ConnRef}}; + Error -> + {Error, State} + end, {reply, Reply, NState}; handle_call({open, _Dir, _Config, Caller}, _From,#state{conn=ConnRef}=State) -> Monitor = erlang:monitor(process, Caller),