aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-10-10 16:26:36 +0200
committerBjörn Gustavsson <[email protected]>2012-10-11 11:49:06 +0200
commitab3d42f58df46d8b0011b154d51ce14a20282ad9 (patch)
tree1bb640f227b5134df6aed538034f5ea57eb027be /lib/stdlib
parent0cb49a6c8250a56f50c5cfb453cb52d69069217c (diff)
downloadotp-ab3d42f58df46d8b0011b154d51ce14a20282ad9.tar.gz
otp-ab3d42f58df46d8b0011b154d51ce14a20282ad9.tar.bz2
otp-ab3d42f58df46d8b0011b154d51ce14a20282ad9.zip
filename: Eliminate Dialyzer warning
os:type/0 always returns a two-tuple.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/filename.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/stdlib/src/filename.erl b/lib/stdlib/src/filename.erl
index 3f528c0adb..59d6de5d10 100644
--- a/lib/stdlib/src/filename.erl
+++ b/lib/stdlib/src/filename.erl
@@ -915,10 +915,8 @@ make_abs_path(BasePath, Path) ->
join(BasePath, Path).
major_os_type() ->
- case os:type() of
- {OsT, _} -> OsT;
- OsT -> OsT
- end.
+ {OsT, _} = os:type(),
+ OsT.
%% flatten(List)
%% Flatten a list, also accepting atoms.