about summary refs log tree commit
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-11-28 21:16:47 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2014-11-28 21:16:47 +0000
commit99c32ae20310220002b9dd148a1b3d9f0748df37 (patch)
tree41a644aed64c4c4e53e0818740204adc67fadba2
parentd814f792aa4ffe7afb6fc3111d48e8848fb5c782 (diff)
downloadperl-libnet-99c32ae20310220002b9dd148a1b3d9f0748df37.tar.gz
Minor tidy-up from previous merge commit: Prefer explicit return statement
-rw-r--r--lib/Net/NNTP.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Net/NNTP.pm b/lib/Net/NNTP.pm
index 09cebe1..ba375e0 100644
--- a/lib/Net/NNTP.pm
+++ b/lib/Net/NNTP.pm
@@ -167,7 +167,8 @@ sub starttls {
   Net::NNTP::_SSL->start_SSL($self,
     %{ ${*$self}{'net_nntp_arg'} }, # (ssl) args given in new
     @_   # more (ssl) args
-  );
+  ) or return;
+  return 1;
 }