aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-06-05 06:47:11 +0200
committerBjörn Gustavsson <[email protected]>2013-08-30 10:13:16 +0200
commit72713a28d5e1bcc22e4be3650504b7ea9dd90b29 (patch)
tree9d21acb5f99e41eddfb14004abaa34e3c160a9a8 /lib/asn1/test
parent060bd359237cdb629abba03620323c0ed8084910 (diff)
downloadotp-72713a28d5e1bcc22e4be3650504b7ea9dd90b29.tar.gz
otp-72713a28d5e1bcc22e4be3650504b7ea9dd90b29.tar.bz2
otp-72713a28d5e1bcc22e4be3650504b7ea9dd90b29.zip
Clean up handling of extension addition groups
Break out the code to a separate function to make it more readable. Also avoid hard-coding the name of the value to use as "Val1" as it may not be true in the future. Instead of using a list comprenhension like this: case [X || X <- [element(5, Val),element(6, Val)], X =/= asn1_NOVALUE] of [] -> ...; _ -> ... end use an orelse chain: case element(5, Val) =/= asn1_NOVALUE orelse element(5, Val) =/= asn1_NOVALUE of false -> ...; true -> ... end
Diffstat (limited to 'lib/asn1/test')
0 files changed, 0 insertions, 0 deletions