aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_codeserver.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-02-20 16:18:15 +0100
committerFredrik Gustafsson <[email protected]>2013-02-20 16:18:15 +0100
commit47f3fc9c5d19b9606a5b4918624bfb6e94df6c85 (patch)
tree60c90209a1983110fadbc0fb598c3d68f701bb06 /lib/dialyzer/src/dialyzer_codeserver.erl
parentcff50efe0cd9dd3e70341142d52b1865a58ea41e (diff)
parent1fa2ed988cf693141d4da9d760f0cad914046fbb (diff)
downloadotp-47f3fc9c5d19b9606a5b4918624bfb6e94df6c85.tar.gz
otp-47f3fc9c5d19b9606a5b4918624bfb6e94df6c85.tar.bz2
otp-47f3fc9c5d19b9606a5b4918624bfb6e94df6c85.zip
Merge branch 'ks/dialyzer-R16B-final-fixes/OTP-10865'
* ks/dialyzer-R16B-final-fixes/OTP-10865: Native code compilation changes Code simplification Simplify a case construct using inequality Simplify a case construct using a boolean operator Code simplifications + take out obsolete note
Diffstat (limited to 'lib/dialyzer/src/dialyzer_codeserver.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_codeserver.erl7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/dialyzer/src/dialyzer_codeserver.erl b/lib/dialyzer/src/dialyzer_codeserver.erl
index 9989118671..5109bf968a 100644
--- a/lib/dialyzer/src/dialyzer_codeserver.erl
+++ b/lib/dialyzer/src/dialyzer_codeserver.erl
@@ -100,10 +100,7 @@ ets_dict_to_dict(Table) ->
ets:foldl(Fold, dict:new(), Table).
ets_set_is_element(Key, Table) ->
- case ets:lookup(Table, Key) of
- [] -> false;
- _ -> true
- end.
+ ets:lookup(Table, Key) =/= [].
ets_set_insert_set(Set, Table) ->
ets_set_insert_list(sets:to_list(Set), Table).
@@ -116,7 +113,7 @@ ets_set_to_set(Table) ->
ets:foldl(Fold, sets:new(), Table).
ets_read_concurrent_table(Name) ->
- ets:new(Name,[{read_concurrency, true}]).
+ ets:new(Name, [{read_concurrency, true}]).
%%--------------------------------------------------------------------