aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_overlay.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-10-15 12:01:32 -0500
committerTristan Sloughter <[email protected]>2013-10-15 12:01:32 -0500
commit4702fd6e7a957d8161e434baa20038b898f2e52f (patch)
treed415af78f3256588d71f41f400baa1d5f8a7c3eb /src/rlx_prv_overlay.erl
parent750c3df605de8e7dc0f4d809e2fe7aa09827eee1 (diff)
downloadrelx-4702fd6e7a957d8161e434baa20038b898f2e52f.tar.gz
relx-4702fd6e7a957d8161e434baa20038b898f2e52f.tar.bz2
relx-4702fd6e7a957d8161e434baa20038b898f2e52f.zip
ignore empty list of overlay vars to fix unneeded warning
Diffstat (limited to 'src/rlx_prv_overlay.erl')
-rw-r--r--src/rlx_prv_overlay.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rlx_prv_overlay.erl b/src/rlx_prv_overlay.erl
index a749ce5..a7a484f 100644
--- a/src/rlx_prv_overlay.erl
+++ b/src/rlx_prv_overlay.erl
@@ -105,6 +105,8 @@ get_overlay_vars_from_file(State, OverlayVars) ->
case rlx_state:get(State, overlay_vars, undefined) of
undefined ->
do_overlay(State, OverlayVars);
+ [] ->
+ do_overlay(State, OverlayVars);
[H | _]=FileNames when is_list(H) ->
read_overlay_vars(State, OverlayVars, FileNames);
FileName when is_list(FileName) ->