From 4fe651cb5b973fa555b62213d74f2caf23bb306e Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 25 Aug 2011 16:13:16 +0200 Subject: Simplify check for empty list --- src/rebar_core.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_core.erl b/src/rebar_core.erl index f30eb35..7740ca6 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -389,7 +389,7 @@ plugin_modules(_Config, FoundModules, []) -> plugin_modules(Config, FoundModules, MissingModules) -> {Loaded, NotLoaded} = load_plugin_modules(Config, MissingModules), AllViablePlugins = FoundModules ++ Loaded, - case length(NotLoaded) > 0 of + case NotLoaded =/= [] of true -> %% NB: we continue to ignore this situation, as did the original code ?WARN("Missing plugins: ~p\n", NotLoaded); -- cgit v1.1