summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/dns.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
commit3acb2e1be6ddeb421efbd1b3598c1ed547d1b38b (patch)
treeb07562ee35bcdfa714e906c40886168a80436bb9 /lib/custodian/protocoltest/dns.rb
parent5a64aa7f443625305701f4db1e16340a87cb0b76 (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/dns.rb')
-rw-r--r--lib/custodian/protocoltest/dns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb
index 4bdbd83..c544b38 100644
--- a/lib/custodian/protocoltest/dns.rb
+++ b/lib/custodian/protocoltest/dns.rb
@@ -118,7 +118,7 @@ module Custodian
@error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected '#{resolve_expected.join(",")}', but we received '#{results.join(",")}'\n"
end
- return @error.nil?
+ @error.nil?
end