Fix issues reported by new rubocop
[chef.git] / cookbooks / networking / libraries / ipaddresses.rb
index 5eb54265e02ae8d57e79255a03041bd5bceeb743..51ef152b52fab21ee07c891f5ccdfe48886ac6b4 100644 (file)
@@ -7,7 +7,7 @@ class Chef
         if block.nil?
           addresses << interface[:address]
         else
-          block.call(interface[:address])
+          yield interface[:address]
         end
       end