diff options
author | Peter Lemenkov <[email protected]> | 2018-09-26 13:17:48 +0300 |
---|---|---|
committer | Peter Lemenkov <[email protected]> | 2018-09-26 13:19:15 +0300 |
commit | bcab56a13fafdf8db9997dd4453812e66ae294e7 (patch) | |
tree | 9ce0c4aa5e8cb45fb8af75cb66c6d72b3db19782 /lib/observer/src/cdv_wx.erl | |
parent | 77a9445af06fec32f267d9dcb52be652a8c0fdb3 (diff) | |
download | otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.tar.gz otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.tar.bz2 otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.zip |
Use os:getenv/2 where possible
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'lib/observer/src/cdv_wx.erl')
-rw-r--r-- | lib/observer/src/cdv_wx.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/observer/src/cdv_wx.erl b/lib/observer/src/cdv_wx.erl index 78a897111c..e546997879 100644 --- a/lib/observer/src/cdv_wx.erl +++ b/lib/observer/src/cdv_wx.erl @@ -448,10 +448,7 @@ maybe_warn_filename(FileName) -> true -> continue; false -> - DumpName = case os:getenv("ERL_CRASH_DUMP") of - false -> filename:absname("erl_crash.dump"); - Name -> filename:absname(Name) - end, + DumpName = filename:absname(os:getenv("ERL_CRASH_DUMP", "erl_crash.dump")), case filename:absname(FileName) of DumpName -> Warning = |