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

Allow renamed fields to exist if values the same #5106

Merged

Conversation

newhoggy
Copy link
Contributor

Allow renamed fields to exist if the new field also exists and has the same value

@newhoggy newhoggy force-pushed the newhoggy/allow-renamed-fields-to-exist-if-values-the-same branch from 65736fd to cbe3cb3 Compare April 17, 2023 01:03
@newhoggy newhoggy marked this pull request as ready for review April 17, 2023 01:05

mOldValue <- v .:? "TestEnableDevelopmentNetworkProtocols"

forM_ mOldValue $ \_ -> do
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need forM_ here? Can't we just use when?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah when (isJust mOldValue) should be the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified to use when.

@newhoggy newhoggy force-pushed the newhoggy/allow-renamed-fields-to-exist-if-values-the-same branch from cbe3cb3 to 88689d6 Compare April 17, 2023 16:09
@newhoggy newhoggy enabled auto-merge April 17, 2023 16:10
@newhoggy newhoggy added this pull request to the merge queue Apr 17, 2023
Merged via the queue into master with commit 1f6848b Apr 17, 2023
@iohk-bors iohk-bors bot deleted the newhoggy/allow-renamed-fields-to-exist-if-values-the-same branch April 17, 2023 16:36
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