Skip to content

fix: remove unreachable is_list guard in soft destroy path#2613

Merged
zachdaniel merged 1 commit intoash-project:mainfrom
djgoku:fix-ash-actions-destroy-destroy-dialyzer-error
Mar 5, 2026
Merged

fix: remove unreachable is_list guard in soft destroy path#2613
zachdaniel merged 1 commit intoash-project:mainfrom
djgoku:fix-ash-actions-destroy-destroy-dialyzer-error

Conversation

@djgoku
Copy link
Contributor

@djgoku djgoku commented Mar 5, 2026

Dialyzer flagged that is_list(notifications) in the {:ok, notifications} branch can never succeed because Update.run always returns a struct (record) in its 2-tuple form, never a list. The remaining branches already handle all return type conversions correctly.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Dialyzer flagged that `is_list(notifications)` in the `{:ok, notifications}`
branch can never succeed because `Update.run` always returns a struct (record)
in its 2-tuple form, never a list. The remaining branches already handle
all return type conversions correctly.
@zachdaniel zachdaniel merged commit f33977d into ash-project:main Mar 5, 2026
40 of 45 checks passed
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

@djgoku djgoku deleted the fix-ash-actions-destroy-destroy-dialyzer-error branch March 5, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants