Skip to content

Commit

Permalink
Use ENV.fetch in views, fixes rubocop haml-lint issue (mastodon#27527)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Oct 24, 2023
1 parent 4fdc548 commit e923bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/auth/registrations/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

- if self_destruct?
.flash-message.warning
= t('auth.status.self_destruct', domain: ENV['LOCAL_DOMAIN'])
= t('auth.status.self_destruct', domain: ENV.fetch('LOCAL_DOMAIN'))
- else
= render partial: 'status', locals: { user: @user, strikes: @strikes }

Expand Down
2 changes: 1 addition & 1 deletion app/views/errors/self_destruct.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.simple_form
%h1.title= t('self_destruct.title')
%p.lead= t('self_destruct.lead_html', domain: ENV['LOCAL_DOMAIN'])
%p.lead= t('self_destruct.lead_html', domain: ENV.fetch('LOCAL_DOMAIN'))

.form-footer
%ul.no-list
Expand Down

0 comments on commit e923bb9

Please sign in to comment.