Skip to content

Commit 047ef58

Browse files
committed
lint
1 parent 1f5ab6e commit 047ef58

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/jesse_database.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ add_file_uri(Key0) ->
316316
add_http_uri(Key0) ->
317317
Key = jesse_state:canonical_path(Key0, Key0),
318318
HttpOptions = [{ssl, [{verify, verify_none}]}],
319-
{ok, Response} = httpc:request(get, {Key, []}, HttpOptions, [{body_format, binary}]),
319+
{ok, Response} = httpc:request( get
320+
, {Key, []}
321+
, HttpOptions
322+
, [{body_format, binary}]),
320323
{{_Line, 200, _}, Headers, SchemaBin} = Response,
321324
Schema = jsx:decode(SchemaBin, [{return_maps, false}]),
322325
SchemaInfos = [{Key, get_http_mtime(Headers), Schema}],

test/jesse_tests_util.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ get_path(Key, Schema) ->
151151

152152
load_schema(URI) ->
153153
HttpOptions = [{ssl, [{verify, verify_none}]}],
154-
{ok, Response} = httpc:request(get, {URI, []}, HttpOptions, [{body_format, binary}]),
154+
{ok, Response} = httpc:request( get
155+
, {URI, []}
156+
, HttpOptions
157+
, [{body_format, binary}]),
155158
{{_Line, 200, _}, _Headers, Body} = Response,
156159
jsx:decode(Body, [{return_maps, false}]).

0 commit comments

Comments
 (0)