aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-11-21 09:22:04 +0100
committerFredrik Gustafsson <[email protected]>2012-11-21 09:22:04 +0100
commita74eb653718e63693da057c2761b308dbd8f353f (patch)
tree5efedc9f38f44a2f8cf88d00b22fa21f10589fe9 /lib/ssh/src/ssh.erl
parentb4518a88c913b54f8a0bfbd93c3ceadfb73a9fe7 (diff)
downloadotp-a74eb653718e63693da057c2761b308dbd8f353f.tar.gz
otp-a74eb653718e63693da057c2761b308dbd8f353f.tar.bz2
otp-a74eb653718e63693da057c2761b308dbd8f353f.zip
is_boolean/1 is called instead of checking
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r--lib/ssh/src/ssh.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index b88738449f..e5c016eb3f 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -411,8 +411,7 @@ handle_ssh_option({disconnectfun , Value} = Opt) when is_function(Value) ->
Opt;
handle_ssh_option({failfun, Value} = Opt) when is_function(Value) ->
Opt;
-handle_ssh_option({ip_v6_disabled, Value} = Opt) when Value == true;
- Value == false ->
+handle_ssh_option({ip_v6_disabled, Value} = Opt) when is_boolean(Value) ->
Opt;
handle_ssh_option({transport, {Protocol, Cb, ClosTag}} = Opt) when is_atom(Protocol),
is_atom(Cb),