summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ping.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:14:15 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:14:15 +0000
commit82171c3406a790ac9740c439e2aafce21853e0a0 (patch)
tree71139d061c87fbde7aefc12d9364339df6d228b8 /lib/custodian/protocoltest/ping.rb
parent1383d0f44f8ce524c297714bd288f95a548107ed (diff)
Avoid redudent returns.
The last expression of a method is the return value. So: def foo; false ; end Is the same as: def foo; return false; end
Diffstat (limited to 'lib/custodian/protocoltest/ping.rb')
-rw-r--r--lib/custodian/protocoltest/ping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/ping.rb b/lib/custodian/protocoltest/ping.rb
index 90e4241..5a9bf0a 100644
--- a/lib/custodian/protocoltest/ping.rb
+++ b/lib/custodian/protocoltest/ping.rb
@@ -184,7 +184,7 @@ module Custodian
# So by the time we reach here we know that all the addresses
# were pingable.
#
- return true
+ true
end