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 deep-merge with nil arguments and values #22

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

federkasten
Copy link
Member

I corrected the behavior of the deep-merge function for nil arguments and nil values in a map. Here's what I did:

(deep-merge {:foo 1} nil)        ;; => {:foo 1}
(deep-merge nil {:foo 1})        ;; => {:foo 1}
(deep-merge {:foo 1} {:foo nil}) ;; => {:foo 1}
(deep-merge {:foo nil} {:foo 1}) ;; => {:foo 1}

@federkasten federkasten requested a review from itoooo April 24, 2024 10:21
@federkasten federkasten self-assigned this Apr 24, 2024
Copy link
Contributor

@itoooo itoooo left a comment

Choose a reason for hiding this comment

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

Thank you for the fix! LGTM 👍

@itoooo itoooo merged commit 82783fd into master Apr 24, 2024
33 checks passed
@itoooo itoooo deleted the fix/deep-merge branch April 24, 2024 12:09
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