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

refactor: remove const validation branch #515

Merged
merged 1 commit into from Aug 31, 2022

Conversation

ivan-tymoshenko
Copy link
Member

My bad, I've badly rebased #504 on #511. It doesn't fail because it is an unreachable code now.

@Uzlopak
Copy link
Contributor

Uzlopak commented Aug 30, 2022

Is the const stuff now basically reverted?

@ivan-tymoshenko
Copy link
Member Author

Is the const stuff now basically reverted?

Not completely. It works properly. The code I accidentally added is unreachable because the proper check exists.

if ('const' in schema) {

Here the code was removed:
https://github.com/fastify/fast-json-stringify/pull/511/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346L868

Here it was accidentally added:
https://github.com/fastify/fast-json-stringify/pull/504/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R849

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
Copy link
Member

can you resolve the conflicts?

@mcollina mcollina merged commit ab27c92 into master Aug 31, 2022
@Fdawgs Fdawgs deleted the remove-const-validation-branch branch August 31, 2022 09: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.

None yet

3 participants