From bcab56a13fafdf8db9997dd4453812e66ae294e7 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 26 Sep 2018 13:17:48 +0300 Subject: Use os:getenv/2 where possible Signed-off-by: Peter Lemenkov --- lib/common_test/src/ct.erl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/common_test/src') diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl index 778ea2e9e2..bfa7b25862 100644 --- a/lib/common_test/src/ct.erl +++ b/lib/common_test/src/ct.erl @@ -390,11 +390,7 @@ testcases(TestDir, Suite) -> end. make_and_load(Dir, Suite) -> - EnvInclude = - case os:getenv("CT_INCLUDE_PATH") of - false -> []; - CtInclPath -> string:lexemes(CtInclPath, [$:,$ ,$,]) - end, + EnvInclude = string:lexemes(os:getenv("CT_INCLUDE_PATH", ""), [$:,$ ,$,]), StartInclude = case init:get_argument(include) of {ok,[Dirs]} -> Dirs; -- cgit v1.2.3