aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-09-26 10:20:24 +0200
committerBjörn Gustavsson <[email protected]>2012-09-26 10:21:21 +0200
commitd599c41d10447dc5872db3e86d1899ff122bfb6c (patch)
tree54460b0ff02b0f7823db2fe16dd225785b2b2718 /lib/test_server
parentd6089c81ce6d3184738be4f936e2cbd5008e077f (diff)
downloadotp-d599c41d10447dc5872db3e86d1899ff122bfb6c.tar.gz
otp-d599c41d10447dc5872db3e86d1899ff122bfb6c.tar.bz2
otp-d599c41d10447dc5872db3e86d1899ff122bfb6c.zip
Fix obsolete assumption for the return type of os:type/0
os:type/0 could (a long, long time ago) return atoms such as 'vxworks' instead of a two-tuple.
Diffstat (limited to 'lib/test_server')
-rw-r--r--lib/test_server/src/test_server_sup.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/test_server/src/test_server_sup.erl b/lib/test_server/src/test_server_sup.erl
index 9d111ff769..4a27c1ebae 100644
--- a/lib/test_server/src/test_server_sup.erl
+++ b/lib/test_server/src/test_server_sup.erl
@@ -473,10 +473,8 @@ getenv_any([]) -> "".
%%
%% Returns the OS family
get_os_family() ->
- case os:type() of
- {OsFamily,_OsName} -> OsFamily;
- OsFamily -> OsFamily
- end.
+ {OsFamily,_OsName} = os:type(),
+ OsFamily.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%