Formmating: Add white space around vertical bar (#4507)

This commit is contained in:
eksperimental
2016-04-25 00:55:49 +02:00
committed by Aleksei Magusev
parent 8fcf699c05
commit 4ceb41e71b
132 changed files with 1250 additions and 1250 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ handle_call({acquire, Path}, From, Config) ->
{ok, true} ->
{reply, loaded, Config};
{ok, {Ref, List}} when is_list(List), is_reference(Ref) ->
Queued = maps:put(Path, {Ref, [From|List]}, Current),
Queued = maps:put(Path, {Ref, [From | List]}, Current),
{reply, {queued, Ref}, Config#elixir_code_server{loaded=Queued}};
error ->
Queued = maps:put(Path, {make_ref(), []}, Current),
@@ -65,7 +65,7 @@ handle_call({compilation_status, CompilerPid}, _From, Config) ->
handle_call(retrieve_module_name, _From, Config) ->
case Config#elixir_code_server.mod_pool of
{[H|T], Counter} ->
{[H | T], Counter} ->
{reply, module_tuple(H), Config#elixir_code_server{mod_pool={T, Counter}}};
{[], Counter} ->
{reply, module_tuple(Counter), Config#elixir_code_server{mod_pool={[], Counter+1}}}
@@ -108,7 +108,7 @@ handle_cast({unload_files, Files}, Config) ->
{noreply, Config#elixir_code_server{loaded=Unloaded}};
handle_cast({return_module_name, H}, #elixir_code_server{mod_pool={T, Counter}} = Config) ->
{noreply, Config#elixir_code_server{mod_pool={[H|T], Counter}}};
{noreply, Config#elixir_code_server{mod_pool={[H | T], Counter}}};
handle_cast(Request, Config) ->
{stop, {badcast, Request}, Config}.