From 7bb66351888fb67e46958c5e21dce09e6980c1a8 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 12:39:32 +0000 Subject: Avoid useless wrapping of return-value. This: def foo line end Is the same as this: def foo return( line ) end --- lib/custodian/protocoltest/imap.rb | 2 +- lib/custodian/protocoltest/mysql.rb | 2 +- lib/custodian/protocoltest/pop3.rb | 2 +- lib/custodian/protocoltest/postgresql.rb | 2 +- lib/custodian/protocoltest/redis.rb | 2 +- lib/custodian/protocoltest/ssh.rb | 2 +- lib/custodian/protocoltest/tcp.rb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/custodian') diff --git a/lib/custodian/protocoltest/imap.rb b/lib/custodian/protocoltest/imap.rb index f18cf94..f0e3288 100644 --- a/lib/custodian/protocoltest/imap.rb +++ b/lib/custodian/protocoltest/imap.rb @@ -62,7 +62,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end diff --git a/lib/custodian/protocoltest/mysql.rb b/lib/custodian/protocoltest/mysql.rb index d61a821..36a0677 100644 --- a/lib/custodian/protocoltest/mysql.rb +++ b/lib/custodian/protocoltest/mysql.rb @@ -62,7 +62,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end diff --git a/lib/custodian/protocoltest/pop3.rb b/lib/custodian/protocoltest/pop3.rb index 528f508..613b2b4 100644 --- a/lib/custodian/protocoltest/pop3.rb +++ b/lib/custodian/protocoltest/pop3.rb @@ -62,7 +62,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end diff --git a/lib/custodian/protocoltest/postgresql.rb b/lib/custodian/protocoltest/postgresql.rb index 294ca52..c07a42b 100644 --- a/lib/custodian/protocoltest/postgresql.rb +++ b/lib/custodian/protocoltest/postgresql.rb @@ -62,7 +62,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end diff --git a/lib/custodian/protocoltest/redis.rb b/lib/custodian/protocoltest/redis.rb index 41c28c2..aacb8dd 100644 --- a/lib/custodian/protocoltest/redis.rb +++ b/lib/custodian/protocoltest/redis.rb @@ -62,7 +62,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end diff --git a/lib/custodian/protocoltest/ssh.rb b/lib/custodian/protocoltest/ssh.rb index 309a52a..30b4458 100644 --- a/lib/custodian/protocoltest/ssh.rb +++ b/lib/custodian/protocoltest/ssh.rb @@ -63,7 +63,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb index d0da3a3..dd2e52b 100644 --- a/lib/custodian/protocoltest/tcp.rb +++ b/lib/custodian/protocoltest/tcp.rb @@ -113,7 +113,7 @@ module Custodian # Allow this test to be serialized. # def to_s - return( @line ) + @line end -- cgit v1.2.1