Skip to content

Commit

Permalink
Remove unused #error_explanation id from error partials (mastodon#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Oct 25, 2023
1 parent cb92cdf commit cec7f0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions .haml-lint_todo.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2023-10-23 10:16:00 -0400 using Haml-Lint version 0.51.0.
# on 2023-10-24 14:08:37 -0400 using Haml-Lint version 0.51.0.
# The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of Haml-Lint, may require this file to be generated again.

linters:
# Offense count: 944
# Offense count: 945
LineLength:
enabled: false

Expand Down Expand Up @@ -69,9 +69,3 @@ linters:
- 'app/views/statuses/_simple_status.html.haml'
- 'app/views/statuses_cleanup/show.html.haml'
- 'app/views/user_mailer/warning.html.haml'

# Offense count: 2
IdNames:
exclude:
- 'app/views/oauth/authorizations/error.html.haml'
- 'app/views/shared/_error_messages.html.haml'
2 changes: 1 addition & 1 deletion app/views/oauth/authorizations/error.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.form-container
.flash-message#error_explanation
.flash-message
= @pre_auth.error_response.body[:error_description]
2 changes: 1 addition & 1 deletion app/views/shared/_error_messages.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- if object.errors.any?
.flash-message.alert#error_explanation
.flash-message.alert
%strong= t('generic.validation_errors', count: object.errors.count)
- object.errors[:base].each do |error|
.flash-message.alert
Expand Down

0 comments on commit cec7f0e

Please sign in to comment.