From 82171c3406a790ac9740c439e2aafce21853e0a0 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:14:15 +0000 Subject: 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 --- lib/custodian/protocoltest/ping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/protocoltest/ping.rb') 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 -- cgit v1.2.1