Skip to content

Commit

Permalink
Fix rubocop 1.31.1 (#197)
Browse files Browse the repository at this point in the history
* fix: rubocop -A

* fix: rubocop

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
ivanoblomov and dependabot[bot] authored Jul 6, 2022
1 parent 01fb1be commit 32c3c6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/services/location_syncer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def log_location_change(location:, results:)

def log_results(results)
if results[:zips].present?
Rails.logger.info "Parsed #{results[:total]}, created #{results[:new]}, updated #{results[:updated]} Locations, "\
"which affected these zips: #{results[:zips].to_a.to_sentence}."
Rails.logger.info "Parsed #{results[:total]}, created #{results[:new]}, updated #{results[:updated]} " \
"Locations, which affected these zips: #{results[:zips].to_a.to_sentence}."
else
Rails.logger.info "Parsed #{results[:total]}, created #{results[:new]}, updated #{results[:updated]} Locations."
end
Expand Down
2 changes: 1 addition & 1 deletion app/services/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def call
def dm_results(results)
TWITTER_CLIENT.create_direct_message(results[:user_zip].user_id, results[:message] * "\n")
results[:users] += 1
Rails.logger.info "DM'd user #{results[:user_zip].user_id} #{results[:locations]} Locations for "\
Rails.logger.info "DM'd user #{results[:user_zip].user_id} #{results[:locations]} Locations for " \
"#{results[:user_zip].zip}."
rescue Twitter::Error => e
Rails.logger.error %(
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/scheduler.rake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace :vaccinesignup do

if results[:total]
if results[:zips].present?
puts "Parsed #{results[:total]}, created #{results[:new]}, updated #{results[:updated]} Locations, which "\
puts "Parsed #{results[:total]}, created #{results[:new]}, updated #{results[:updated]} Locations, which " \
"affected these zips: #{results[:zips].to_a.to_sentence}."
else
puts "Parsed #{results[:total]}, created #{results[:new]}, updated #{results[:updated]} Locations."
Expand Down

0 comments on commit 32c3c6e

Please sign in to comment.