Remove superfluous report existence checks

This commit is contained in:
Andreas Nedbal 2022-07-30 05:12:22 +02:00
parent 08033361f7
commit 19e95d066c
1 changed files with 31 additions and 32 deletions

View File

@ -1,4 +1,3 @@
- unless report.nil? || report.target.nil? || report.user.nil? || report.type.nil?
.card.moderationbox{ data: { id: report.id } } .card.moderationbox{ data: { id: report.id } }
.card-header .card-header
%img.avatar-sm{ src: report.user.profile_picture.url(:medium) } %img.avatar-sm{ src: report.user.profile_picture.url(:medium) }