From 3acb2e1be6ddeb421efbd1b3598c1ed547d1b38b 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/util/ping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/util') diff --git a/lib/custodian/util/ping.rb b/lib/custodian/util/ping.rb index 4056803..771cfd6 100644 --- a/lib/custodian/util/ping.rb +++ b/lib/custodian/util/ping.rb @@ -85,7 +85,7 @@ module Custodian else puts "ERROR: Resolved to neither an IPv6 or IPv4 address." end - return false + false end end -- cgit v1.2.1