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

4
script/fixes/005.rb Normal file → Executable file
View File

@@ -7,7 +7,7 @@ Post.where("image_width > 850").find_each do |post|
next
end
if !File.exists?(post.file_path)
if !File.exist?(post.file_path)
puts "NOT FOUND: #{post.id}"
next
end
@@ -19,7 +19,7 @@ Post.where("image_width > 850").find_each do |post|
resize = false
if !File.exists?(post.large_file_path)
if !File.exist?(post.large_file_path)
puts "LARGE NOT FOUND: #{post.id}"
resize = true
end