diff options
author | Zandra <[email protected]> | 2016-05-30 12:30:23 +0200 |
---|---|---|
committer | Zandra Hird <[email protected]> | 2016-06-07 14:35:28 +0200 |
commit | 3cb675eba8d36faaa6c1e260edc7981a379c7a73 (patch) | |
tree | 783d424a57a073537a53478fd506d7a083d0b98e /lib/common_test/src/ct_telnet_client.erl | |
parent | 4b6a93510f51afcf7d8c91c568e9db84ef8b1d44 (diff) | |
download | otp-3cb675eba8d36faaa6c1e260edc7981a379c7a73.tar.gz otp-3cb675eba8d36faaa6c1e260edc7981a379c7a73.tar.bz2 otp-3cb675eba8d36faaa6c1e260edc7981a379c7a73.zip |
ct_telnet: Fix unmatched_return warnings
Diffstat (limited to 'lib/common_test/src/ct_telnet_client.erl')
-rw-r--r-- | lib/common_test/src/ct_telnet_client.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_telnet_client.erl b/lib/common_test/src/ct_telnet_client.erl index 1f1311776f..5df7e279ac 100644 --- a/lib/common_test/src/ct_telnet_client.erl +++ b/lib/common_test/src/ct_telnet_client.erl @@ -272,7 +272,7 @@ send(Data, Sock, ConnName) -> _:_ -> ok end end, - gen_tcp:send(Sock, Data), + ok = gen_tcp:send(Sock, Data), ok. %% [IAC,IAC] = buffer data value 255 @@ -284,7 +284,7 @@ check_msg(Sock, [?IAC | Cs], Acc) -> case get_cmd(Cs) of {Cmd,Cs1} -> cmd_dbg("Got",Cmd), - respond_cmd(Cmd, Sock), + ok = respond_cmd(Cmd, Sock), check_msg(Sock, Cs1, Acc); error -> Acc |