aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_telnet.erl
diff options
context:
space:
mode:
authorZandra <[email protected]>2016-05-30 12:30:23 +0200
committerZandra Hird <[email protected]>2016-06-07 14:35:28 +0200
commit3cb675eba8d36faaa6c1e260edc7981a379c7a73 (patch)
tree783d424a57a073537a53478fd506d7a083d0b98e /lib/common_test/src/ct_telnet.erl
parent4b6a93510f51afcf7d8c91c568e9db84ef8b1d44 (diff)
downloadotp-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.erl')
-rw-r--r--lib/common_test/src/ct_telnet.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_telnet.erl b/lib/common_test/src/ct_telnet.erl
index f5f4f648f4..8fb411ec4f 100644
--- a/lib/common_test/src/ct_telnet.erl
+++ b/lib/common_test/src/ct_telnet.erl
@@ -605,7 +605,7 @@ init(Name,{Ip,Port,Type},{TargetMod,KeepAlive,Extra}) ->
set_telnet_defaults(Settings,#state{})
end,
%% Handle old user versions of TargetMod
- code:ensure_loaded(TargetMod),
+ _ = code:ensure_loaded(TargetMod),
try
case erlang:function_exported(TargetMod,connect,7) of
true ->
@@ -688,7 +688,7 @@ handle_msg({cmd,Cmd,Opts},State) ->
debug_cont_gen_log("Throwing Buffer:",[]),
debug_log_lines(State#state.buffer),
- case {State#state.type,State#state.prompt} of
+ _ = case {State#state.type,State#state.prompt} of
{ts,_} ->
silent_teln_expect(State#state.name,
State#state.teln_pid,
@@ -735,7 +735,7 @@ handle_msg({send,Cmd,Opts},State) ->
debug_cont_gen_log("Throwing Buffer:",[]),
debug_log_lines(State#state.buffer),
- case {State#state.type,State#state.prompt} of
+ _ = case {State#state.type,State#state.prompt} of
{ts,_} ->
silent_teln_expect(State#state.name,
State#state.teln_pid,