Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Jul 26, 2024
1 parent 1f5ab6e commit 047ef58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/jesse_database.erl
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ add_file_uri(Key0) ->
add_http_uri(Key0) ->
Key = jesse_state:canonical_path(Key0, Key0),
HttpOptions = [{ssl, [{verify, verify_none}]}],
{ok, Response} = httpc:request(get, {Key, []}, HttpOptions, [{body_format, binary}]),
{ok, Response} = httpc:request( get
, {Key, []}
, HttpOptions
, [{body_format, binary}]),
{{_Line, 200, _}, Headers, SchemaBin} = Response,
Schema = jsx:decode(SchemaBin, [{return_maps, false}]),
SchemaInfos = [{Key, get_http_mtime(Headers), Schema}],
Expand Down
5 changes: 4 additions & 1 deletion test/jesse_tests_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ get_path(Key, Schema) ->

load_schema(URI) ->
HttpOptions = [{ssl, [{verify, verify_none}]}],
{ok, Response} = httpc:request(get, {URI, []}, HttpOptions, [{body_format, binary}]),
{ok, Response} = httpc:request( get
, {URI, []}
, HttpOptions
, [{body_format, binary}]),
{{_Line, 200, _}, _Headers, Body} = Response,
jsx:decode(Body, [{return_maps, false}]).

0 comments on commit 047ef58

Please sign in to comment.