-
-
Notifications
You must be signed in to change notification settings - Fork 197
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 dead code #635
Remove dead code #635
Conversation
Codecov Report
@@ Coverage Diff @@
## main #635 +/- ##
===========================================
- Coverage 92.62% 62.03% -30.59%
===========================================
Files 24 24
Lines 922 922
===========================================
- Hits 854 572 -282
- Misses 68 350 +282
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
eb74b27
to
ecd92c6
Compare
|> Keyword.put_new(:count, opts[:count]) | ||
|> Keyword.put_new(:minimum, opts[:minimum]) | ||
|> Keyword.put_new(:maximum, opts[:maximum]) | ||
|> Keyword.put_new(:count, nil) | ||
|> Keyword.put_new(:minimum, nil) | ||
|> Keyword.put_new(:maximum, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is correct.
This branch is reached if one of those three options is not nil, meaning, 2 of them could have a value.
With this change, they are always set to nil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but it's put_new
, not put
.
any_map |> Keyword.put_new(:any_key, any_map[:any_key])
# always equivalent to
any_map |> Keyword.put_new(:any_key, nil)
ecd92c6
to
e5ccfd2
Compare
No description provided.