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

Remove redundant validate_attr case. #5965

Conversation

ShPakvel
Copy link
Contributor

@ShPakvel ShPakvel commented Nov 6, 2024

  • After change from this PR, :enum valid case becomes redundant. Next line has general check that includes valid enum case.
  • Also removed redundant passing throw for :datetime case. Instead, return already prepared result right away.

- After change from this PR (https://github.com/phoenixframework/phoenix/pull/4601/files#diff-4307581434ae66da4750cde438c2b192c4a11c8b71ba32dbf78aea36daa0ee3eR368), `:enum` valid case becomes redundant. Next line has general check that includes valid enum case.
- Also removed redundant passing throw for `:datetime` case. Instead, return already prepared result right away.
lib/mix/phoenix/schema.ex Show resolved Hide resolved
@josevalim josevalim merged commit 13e9895 into phoenixframework:main Nov 9, 2024
7 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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.

3 participants