mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:29:53 +01:00
Fix rubocop nits
This commit is contained in:
parent
bba00ea415
commit
92c9ed011f
1 changed files with 4 additions and 4 deletions
|
@ -53,11 +53,11 @@ class ApplicationController < ActionController::Base
|
|||
return unless current_user&.mod?
|
||||
|
||||
@has_new_reports = if current_user.last_reports_visit.nil?
|
||||
true
|
||||
true
|
||||
else
|
||||
Report.where(deleted: false)
|
||||
.where("created_at > ?", current_user.last_reports_visit)
|
||||
.count > 0
|
||||
Report.where(deleted: false)
|
||||
.where("created_at > ?", current_user.last_reports_visit)
|
||||
.count.positive?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue