Skip to content

Commit 7d6d0d7

Browse files
Merge pull request codebar#2358 from olleolleolle/lint-haml-rails-present
cleanup: Lint "Rails/Present"
2 parents 70cefc1 + 2967379 commit 7d6d0d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/virtual_workshops/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
= t('workshops.virtual.lead')
1919
%p.lead
2020
= t('workshops.virtual.intro', chapter_email: @workshop.chapter.email)
21-
- unless @workshop.description.blank?
21+
- if @workshop.description.present?
2222
%p.description
2323
= sanitize(@workshop.description)
2424
= render 'workshops/actions' unless current_user&.banned?

app/views/workshops/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.col.col-md-9
1717
%p.lead
1818
= t('workshops.lead')
19-
- unless @workshop.description.blank?
19+
- if @workshop.description.present?
2020
%p
2121
= sanitize(@workshop.description)
2222
= render 'actions' unless current_user&.banned?

0 commit comments

Comments
 (0)