diff options
author | Björn Gustavsson <[email protected]> | 2016-02-25 15:56:52 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-02-25 16:07:42 +0100 |
commit | bf4ae9bb9cc0b4ae53447aa4a7cd25add5d3a7a4 (patch) | |
tree | a744fa16124982e56e64ae87b78483667165a8d9 /lib/compiler/test/bs_match_SUITE.erl | |
parent | 9d8efc5acc50ae1c76b00a67d06ed284fbcce0aa (diff) | |
download | otp-bf4ae9bb9cc0b4ae53447aa4a7cd25add5d3a7a4.tar.gz otp-bf4ae9bb9cc0b4ae53447aa4a7cd25add5d3a7a4.tar.bz2 otp-bf4ae9bb9cc0b4ae53447aa4a7cd25add5d3a7a4.zip |
Replace use of lists:keysearch/3 with lists:keyfind/3
Diffstat (limited to 'lib/compiler/test/bs_match_SUITE.erl')
-rw-r--r-- | lib/compiler/test/bs_match_SUITE.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/compiler/test/bs_match_SUITE.erl b/lib/compiler/test/bs_match_SUITE.erl index 2b821ac141..464763d43f 100644 --- a/lib/compiler/test/bs_match_SUITE.erl +++ b/lib/compiler/test/bs_match_SUITE.erl @@ -909,9 +909,11 @@ otp_7233_1(Rec) -> case K of <<"XX">> -> Value = Rec#rec_otp_7233.val, - case lists:keysearch("xxxxxxxx", 1, Value) of - {value,T} -> put(io_format, [Rec#rec_otp_7233.key,T]); - false -> ok + case lists:keyfind("xxxxxxxx", 1, Value) of + false -> + ok; + T -> + put(io_format, [Rec#rec_otp_7233.key,T]) end; _ -> ok end. |