rubocop: fix various style issues.

This commit is contained in:
evazion
2019-12-22 16:21:58 -06:00
parent 09f6a84660
commit 309821bf73
288 changed files with 912 additions and 962 deletions

2
script/fixes/014_note_ranges.rb Normal file → Executable file
View File

@@ -22,7 +22,7 @@ Post.where("created_at >= '2013-02-01'").select("id, score, up_score, down_score
revised_score = post.up_score + post.down_score + fav_count
puts "#{post.id}: #{post.score} -> #{revised_score}" if post.score != revised_score
post.update_column(:score, revised_score)
end ; true
end; true
Post.where("is_deleted = true and created_at >= '2013-02-01'").find_each do |post|
if post.flags.empty?