Skip to content

Commit

Permalink
[api] Silencing rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed May 27, 2017
1 parent 0016b97 commit f2bff30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rubocop_todo.yml
Expand Up @@ -455,6 +455,7 @@ Style/FormatString:
# Offense count: 7
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
AllowedVariables: ['$rabbitmq_connection']
Exclude:
- 'src/api/test/functional/interconnect_test.rb'
- 'src/api/test/functional/request_controller_test.rb'
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/models/event/send_to_bus.rb
Expand Up @@ -14,7 +14,7 @@ def amqp_config

def bus_topic(config)
# no config, nil topic
return if config.empty? || config['url'].empty?
return if config.blank? || config['url'].empty?

ch = connection(config).create_channel
# this has to be a predefined topic
Expand Down

0 comments on commit f2bff30

Please sign in to comment.