Fix haml-lint ConsecutiveSilentScripts rule (#26043)

This commit is contained in:
Matt Jankowski
2023-07-18 03:25:37 -04:00
committed by GitHub
parent 6245cec185
commit e663e6d2c2
4 changed files with 16 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
- show_results = (user_signed_in? && poll.voted?(current_account)) || poll.expired?
- own_votes = user_signed_in? ? poll.own_votes(current_account) : []
- total_votes_count = poll.voters_count || poll.votes_count
:ruby
show_results = (user_signed_in? && poll.voted?(current_account)) || poll.expired?
own_votes = user_signed_in? ? poll.own_votes(current_account) : []
total_votes_count = poll.voters_count || poll.votes_count
.poll
%ul