aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-29 12:47:17 +0100
committerBjörn Gustavsson <[email protected]>2016-01-29 13:18:23 +0100
commiteb75295eb95602d0930ce9070447537b7ace22df (patch)
tree59bd4702990c4448d45b34689b8432459775a2ce /erts/emulator/sys
parent8a6abf9ac1ce0bae427e202b857d03b89086bb8d (diff)
downloadotp-eb75295eb95602d0930ce9070447537b7ace22df.tar.gz
otp-eb75295eb95602d0930ce9070447537b7ace22df.tar.bz2
otp-eb75295eb95602d0930ce9070447537b7ace22df.zip
Eliminate redundant double is_function test
When tuple funs were still supported, the idiom for allowing real funs with a certain arity but not tuple funs was: is_function(Fun) andalso is_function(Fun, Arity) The reason that both tests were needed is because: is_function({M,F}) would return 'false' is_function({M,F}, Arity) would return 'true' In 53ec991d19, is_function/2 was updated to only return 'false' for tuples, so the call to is_function/1 can be removed.
Diffstat (limited to 'erts/emulator/sys')
0 files changed, 0 insertions, 0 deletions