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 slightly unnecessary notNullish usage #2135

Merged
merged 1 commit into from
Mar 7, 2021

Conversation

dapplion
Copy link
Contributor

@dapplion dapplion commented Mar 7, 2021

Although I added the notNullish utility I believe it encourages patterns that could be simplified with a simple for loop and predeclaring an array, instead of returning null, then looping again to drop those values.

I would be in favor of removing the notNullish utility from the utils library but that would be a breaking change.

@github-actions github-actions bot added Api scope-networking All issues related to networking, gossip, and libp2p. labels Mar 7, 2021
@codeclimate
Copy link

codeclimate bot commented Mar 7, 2021

Code Climate has analyzed commit b71fa64 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@wemeetagain wemeetagain merged commit 07f5390 into master Mar 7, 2021
@wemeetagain wemeetagain deleted the dapplion/notNullish branch March 7, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants