Skip to content

Commit

Permalink
Merge pull request #88 from inaka/elbrujohalcon.88.reapply__83
Browse files Browse the repository at this point in the history
Reapply #83
  • Loading branch information
elbrujohalcon authored Apr 30, 2018
2 parents 9322bd0 + 76f72d7 commit d8e34e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/trails.erl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ trails([Module | T], Acc) ->
Trails::[route_path()]) -> ok.
do_store(_Server, _HostMatch, []) -> ok;
do_store(Server, HostMatch, [Trail = #{path_match := PathMatch} | Trails]) ->
{ok, _} = application:ensure_all_started(trails),
ets:insert(trails, {{Server, HostMatch, PathMatch}, Trail}),
do_store(Server, HostMatch, Trails).

Expand Down
2 changes: 0 additions & 2 deletions test/trails_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ minimal_multiple_host_compile_test(_Config) ->
Repeated1 = trails:retrieve("host1", "/repeated"),
notfound = trails:retrieve("host2", "/path1"),
notfound = trails:retrieve("unknown_host", "/path1"),
% Test that trails:do_store/3 actually starts trails application
ok = application:stop(trails),
ok = trails:store([{"host3", Trails1}, {"host4", Trails2}]),
{comment, ""}.

Expand Down

0 comments on commit d8e34e7

Please sign in to comment.