diff options
author | Tuncer Ayaz <[email protected]> | 2011-06-28 22:29:50 +0200 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-06-30 10:51:06 +0200 |
commit | af61de4fee3f5936e2ea368ded527414b69c4a78 (patch) | |
tree | 59c095a19ba5fe53ac43917b54529990ed36462c /lib | |
parent | 1049243404cc52cad5ce1f1d2d37383a2ca06160 (diff) | |
download | otp-af61de4fee3f5936e2ea368ded527414b69c4a78.tar.gz otp-af61de4fee3f5936e2ea368ded527414b69c4a78.tar.bz2 otp-af61de4fee3f5936e2ea368ded527414b69c4a78.zip |
wx: fix obsolete guard warning (list/1)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/wx/test/wxt.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wx/test/wxt.erl b/lib/wx/test/wxt.erl index 1f5b1cc3b1..2f52c58f26 100644 --- a/lib/wx/test/wxt.erl +++ b/lib/wx/test/wxt.erl @@ -72,7 +72,7 @@ resolve({Suite0, Case}) when is_atom(Suite0), is_atom(Case) -> {Suite, Case2} -> {Suite, Case2} end; -resolve(List) when list(List) -> +resolve(List) when is_list(List) -> [resolve(Case) || Case <- List]. alias(Suite) when is_atom(Suite) -> @@ -104,7 +104,7 @@ read_config() -> end. %% Write new default config file -write_config(Config) when list(Config) -> +write_config(Config) when is_list(Config) -> Fname = config_fname(), {ok, Fd} = file:open(Fname, write), write_list(Fd, Config), |