Skip to content

Commit

Permalink
Merge pull request voxpupuli#491 from wyardley/rabbitmqadmin-sourcena…
Browse files Browse the repository at this point in the history
…me-empty

use unless instead of if, and empty? instead of !=''
  • Loading branch information
bmjen authored Sep 1, 2016
2 parents b69a215 + aa94744 commit 9b3e926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rabbitmq_binding/rabbitmqadmin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b3e926

Please sign in to comment.