Skip to content

Commit dd3dd10

Browse files
committed
Fix formatting
1 parent 2914a18 commit dd3dd10

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/basho_bench_config.erl

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,31 +129,32 @@ terminate(_Reason, _State) ->
129129
ok.
130130

131131
handle_call({load_files, FileNames}, _From, State) ->
132-
set_keys_from_files(FileNames),
133-
{reply, ok, State};
132+
set_keys_from_files(FileNames),
133+
{reply, ok, State};
134134

135135
handle_call({set, Key, Value}, _From, State) ->
136-
application:set_env(basho_bench, Key, Value),
137-
{reply, ok, State};
136+
application:set_env(basho_bench, Key, Value),
137+
{reply, ok, State};
138138
handle_call({get, Key}, _From, State) ->
139-
Value = application:get_env(basho_bench, Key),
140-
{reply, Value, State}.
139+
Value = application:get_env(basho_bench, Key),
140+
{reply, Value, State}.
141141

142142
handle_cast(_Cast, State) ->
143-
{noreply, State}.
143+
{noreply, State}.
144144

145145
handle_info(_Info, State) ->
146-
{noreply, State}.
147-
146+
{noreply, State}.
147+
148148
set_keys_from_files(Files) ->
149-
KVs = [ case file:consult(File) of
150-
{ok, Terms} ->
151-
Terms;
152-
{error, Reason} ->
153-
?FAIL_MSG("Failed to parse config file ~s: ~p\n", [File, Reason]),
154-
throw(invalid_config),
155-
notokay
156-
end || File <- Files ],
149+
KVs = [
150+
case file:consult(File) of
151+
{ok, Terms} ->
152+
Terms;
153+
{error, Reason} ->
154+
?FAIL_MSG("Failed to parse config file ~s: ~p\n", [File, Reason]),
155+
throw(invalid_config),
156+
notokay
157+
end || File <- Files ],
157158
FlatKVs = lists:flatten(KVs),
158159
[application:set_env(basho_bench, Key, Value) || {Key, Value} <- FlatKVs].
159160

0 commit comments

Comments
 (0)