diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:39:32 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:39:32 +0000 |
commit | b99b80e3a780a290a87e2cfc10e24946cde45ca7 (patch) | |
tree | 969b6dc80fd18a0f646c1657cd54db8079a7a243 /lib/custodian/protocoltest/ssh.rb | |
parent | 3dd9062d866266e1940bbf84b1ca5a63482cdadb (diff) |
Avoid useless wrapping of return-value.
This:
def foo
line
end
Is the same as this:
def foo
return( line )
end
Diffstat (limited to 'lib/custodian/protocoltest/ssh.rb')
-rw-r--r-- | lib/custodian/protocoltest/ssh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |