Skip to content

Commit

Permalink
Disable Style/YodaCondition cop
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed May 27, 2017
1 parent 2873f88 commit ba69492
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Web interface
if defined?(Resque::Server)
Resque::Server.use(Rack::Auth::Basic) do |user_name, password|
[user_name, password] == [APP_CONFIG.resque.user_name, APP_CONFIG.resque.password]
# rubocop:disable Style/YodaCondition
[APP_CONFIG.resque.user_name, APP_CONFIG.resque.password] == [user_name, password]
# rubocop:enable Style/YodaCondition
end
end

0 comments on commit ba69492

Please sign in to comment.