Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always return {:ok, zipper} in append_new_to_list/2 #31

Conversation

ibarakaiev
Copy link
Contributor

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests

There's currently a minor inconsistency between Igniter.Code.List.append_new_to_list/2 and Igniter.Code.List.prepend_new_to_list/2, namely, append_new_to_list/2 sometimes returns zipper and sometimes {:ok, zipper}. This PR is a minor fix to ensure {:ok, zipper} is always returned.

@zachdaniel zachdaniel merged commit 2f3e306 into ash-project:main Jul 4, 2024
15 checks passed
@ibarakaiev ibarakaiev deleted the fix-consistency-in-append-new-to-list branch July 4, 2024 10:48
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