Fix haml-lint Rubocop Rails/* cops (#26042)

This commit is contained in:
Matt Jankowski 2023-10-03 09:00:40 -04:00 committed by GitHub
parent 8bb4706e11
commit e715da6d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 29 additions and 18 deletions

View file

@ -39,7 +39,7 @@
- unless @warning.none_action?
%p= t "user_mailer.warning.explanation.#{@warning.action}", instance: @instance
- unless @warning.text.blank?
- if @warning.text.present?
= linkify(@warning.text)
- if @warning.report && !@warning.report.other?
@ -68,7 +68,7 @@
%table.content-section{ cellspacing: 0, cellpadding: 0 }
%tbody
%tr
%td.content-cell{ class: @statuses.nil? || @statuses.empty? ? '' : 'content-start' }
%td.content-cell{ class: @statuses.blank? ? '' : 'content-start' }
%table.column{ cellspacing: 0, cellpadding: 0 }
%tbody
%tr