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

🐛 corret merge stats' start and end date #38

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

stormslowly
Copy link
Contributor

as the title

@codecov
Copy link

codecov bot commented Feb 4, 2020

Codecov Report

Merging #38 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #38   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           29        37    +8     
  Branches         1         1           
=========================================
+ Hits            29        37    +8     
Impacted Files Coverage Δ
lib/index.js 100.00% <100.00%> (ø)

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 aedc7e8...1bfcda4. Read the comment docs.

Copy link
Owner

@Antontelesh Antontelesh left a comment

Choose a reason for hiding this comment

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

Hey @stormslowly!
Thank you for this improvement.

Just one small question:

lib/index.js Outdated
)
return { start, end }
},
{ ...spans[0] }
Copy link
Owner

Choose a reason for hiding this comment

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

Why do you need a spread here? I think, here it’s possible to reduce without supplying the initial value at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it can be removed

@rohitkadam19
Copy link

rohitkadam19 commented Sep 22, 2020

@Antontelesh @stormslowly any updates here? Would love to get this merged. I am trying to generate dashboard and correct values in stats in final merge report will be helpful :). Thanks

@Antontelesh Antontelesh self-requested a review September 23, 2020 16:30
@Antontelesh Antontelesh merged commit 3dcdd79 into Antontelesh:master Sep 23, 2020
@Antontelesh
Copy link
Owner

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@stormslowly
Copy link
Contributor Author

@Antontelesh thx a lot for your comment, learn the reduce API again ~
<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants