aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_callgraph.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2013-02-19 11:15:45 +0100
committerKostis Sagonas <[email protected]>2013-02-19 11:15:45 +0100
commit23c9b7f04b85b7d25e31aa26ac559cbf8ef4a73e (patch)
tree79816e663f6a0c28d0ade99ca54c26697a2113d1 /lib/dialyzer/src/dialyzer_callgraph.erl
parente3b11f85292ad6452a504236cb04061c1a0b04a3 (diff)
downloadotp-23c9b7f04b85b7d25e31aa26ac559cbf8ef4a73e.tar.gz
otp-23c9b7f04b85b7d25e31aa26ac559cbf8ef4a73e.tar.bz2
otp-23c9b7f04b85b7d25e31aa26ac559cbf8ef4a73e.zip
Simplify a case construct using a boolean operator
Diffstat (limited to 'lib/dialyzer/src/dialyzer_callgraph.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_callgraph.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/dialyzer/src/dialyzer_callgraph.erl b/lib/dialyzer/src/dialyzer_callgraph.erl
index 64e0ee88af..9e9226fa5a 100644
--- a/lib/dialyzer/src/dialyzer_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_callgraph.erl
@@ -798,10 +798,7 @@ condensation(G) ->
fun({V1, V2}) ->
I1 = ets:lookup_element(V2I, V1, 2),
I2 = ets:lookup_element(V2I, V2, 2),
- case I1 =:= I2 of
- true -> true;
- false -> ets:insert(I2I, {I1, I2})
- end
+ I1 =:= I2 orelse ets:insert(I2I, {I1, I2})
end,
lists:foreach(Fun1, digraph:edges(G)),
Fun3 =