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 dead code #635

Merged
merged 3 commits into from
Oct 20, 2021
Merged

Remove dead code #635

merged 3 commits into from
Oct 20, 2021

Conversation

marcandre
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2021

Codecov Report

Merging #635 (1551bfd) into main (ba0138f) will decrease coverage by 30.58%.
The diff coverage is 100.00%.

❗ Current head 1551bfd differs from pull request most recent head ecd92c6. Consider uploading reports for the commit ecd92c6 to get more accurate results
Impacted file tree graph

@@             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     
Flag Coverage Δ
IntegrationTest 62.03% <100.00%> (-26.25%) ⬇️
UnitTest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/wallaby/browser.ex 83.50% <100.00%> (-11.00%) ⬇️
lib/wallaby/query.ex 96.15% <100.00%> (-1.93%) ⬇️
lib/wallaby/driver/utils.ex 0.00% <0.00%> (-100.00%) ⬇️
lib/wallaby/chrome/logger.ex 0.00% <0.00%> (-100.00%) ⬇️
lib/wallaby/driver/log_checker.ex 0.00% <0.00%> (-100.00%) ⬇️
lib/wallaby/chrome/chromedriver.ex 0.00% <0.00%> (-100.00%) ⬇️
lib/wallaby/driver/temporary_path.ex 0.00% <0.00%> (-100.00%) ⬇️
lib/wallaby/chrome/chromedriver/server.ex 0.00% <0.00%> (-100.00%) ⬇️
...b/wallaby/chrome/chromedriver/readiness_checker.ex 0.00% <0.00%> (-100.00%) ⬇️
lib/wallaby/chrome.ex 0.00% <0.00%> (-96.16%) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba0138f...ecd92c6. Read the comment docs.

Comment on lines -518 to +531
|> 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)
Copy link
Member

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.

Copy link
Contributor Author

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)

@mhanberg mhanberg mentioned this pull request Oct 16, 2021
@mhanberg mhanberg merged commit 9a5cb75 into elixir-wallaby:main Oct 20, 2021
@marcandre marcandre deleted the remove_dead_code branch October 24, 2021 23:24
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