Don't badmatch if a path we think we added isn't in the code path
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/aa46d858 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/aa46d858 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/aa46d858 Branch: refs/heads/import Commit: aa46d858493356b5247481532145ddc99f12040d Parents: d983bea Author: Andrew Thompson <[email protected]> Authored: Thu Oct 17 12:36:36 2013 -0400 Committer: Andrew Thompson <[email protected]> Committed: Thu Oct 17 12:36:36 2013 -0400 ---------------------------------------------------------------------- src/rebar_core.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/aa46d858/src/rebar_core.erl ---------------------------------------------------------------------- diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 2e0768e..6c4f5c5 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -411,7 +411,7 @@ restore_code_path(no_change) -> restore_code_path({added, Paths}) -> %% Verify that all of the paths still exist -- some dynamically %% added paths can get blown away during clean. - [true = code:del_path(F) || F <- Paths, erl_prim_loader_is_file(F)], + [code:del_path(F) || F <- Paths, erl_prim_loader_is_file(F)], ok. erl_prim_loader_is_file(File) ->
