0
0
Fork 0

Fix Rails/WhereExists cop in lib/tasks (#28852)

This commit is contained in:
Matt Jankowski 2024-01-23 04:07:22 -05:00 committed by GitHub
parent 67f54c4e75
commit defe5f4076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -24,7 +24,7 @@ namespace :tests do
exit(1)
end
if Account.where(domain: Rails.configuration.x.local_domain).exists?
if Account.exists?(domain: Rails.configuration.x.local_domain)
puts 'Faux remote accounts not properly cleaned up'
exit(1)
end