summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Wood <justin.k.wood@protonmail.com>2019-04-16 12:58:14 -0400
committerJustin Wood <justin.k.wood@protonmail.com>2019-04-16 12:58:14 -0400
commitcb881390dce42dab63f18dba59eddd1e4990b969 (patch)
treef7fa1047d059f637937a51da51289c4e58b26268 /src
parent60d6e0bb6b422cd1f40ba4ab406b47fb47abacfc (diff)
An empty list on applications key should not be treated as missing
Diffstat (limited to 'src')
-rw-r--r--src/rebar_app_utils.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl
index 951bc1d..bb706fd 100644
--- a/src/rebar_app_utils.erl
+++ b/src/rebar_app_utils.erl
@@ -123,8 +123,8 @@ lint_description(AppDetail, AppFile) ->
-spec lint_applications(list(), file:filename_all()) -> ok.
lint_applications(AppDetail, AppFile) ->
- case proplists:get_value(applications, AppDetail, []) of
- [] -> ?WARN("~p is missing applications entry", [AppFile]);
+ case proplists:get_value(applications, AppDetail) of
+ undefined -> ?WARN("~p is missing applications entry", [AppFile]);
AppList when is_list(AppList) ->
case lists:member(kernel, AppList) of
false ->