From aa94744f001ff5f126394593bf48d34bc935caa3 Mon Sep 17 00:00:00 2001 From: William Yardley Date: Mon, 8 Aug 2016 14:37:46 -0700 Subject: [PATCH] use unless instead of if, and empty? instead of !='' --- lib/puppet/provider/rabbitmq_binding/rabbitmqadmin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/rabbitmq_binding/rabbitmqadmin.rb b/lib/puppet/provider/rabbitmq_binding/rabbitmqadmin.rb index e02c46685..382839414 100644 --- a/lib/puppet/provider/rabbitmq_binding/rabbitmqadmin.rb +++ b/lib/puppet/provider/rabbitmq_binding/rabbitmqadmin.rb @@ -49,7 +49,7 @@ def self.instances else arguments = '{}' end - if (source_name != '') + unless(source_name.empty?) binding = { :destination_type => destination_type, :routing_key => routing_key,