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

LogCleaner: make overdue_days_ unsigned int #760

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

aesophor
Copy link
Contributor

Since the value of LogCleaner::overdue_days_ should be >= 0,
we can simply make it an unsigned int which also avoids
unnecessary assertions.

Signed-off-by: Marco Wang <m.aesophor@gmail.com>

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2021

Codecov Report

Merging #760 (168b371) into master (baa7006) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #760      +/-   ##
==========================================
- Coverage   73.02%   73.01%   -0.01%     
==========================================
  Files          17       17              
  Lines        3218     3217       -1     
==========================================
- Hits         2350     2349       -1     
  Misses        868      868              
Impacted Files Coverage Δ
src/glog/logging.h.in 83.13% <ø> (ø)
src/logging.cc 73.86% <100.00%> (-0.03%) ⬇️

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 baa7006...168b371. Read the comment docs.

Since the value of `LogCleaner::overdue_days_` should be >= 0,
we can simply make it an unsigned int which also avoids
unnecessary assertions.

Signed-off-by: Marco Wang <m.aesophor@gmail.com>
@sergiud sergiud added this to the 0.6 milestone Dec 13, 2021
@sergiud
Copy link
Collaborator

sergiud commented Dec 13, 2021

Thanks!

@sergiud sergiud merged commit d09b999 into google:master Dec 13, 2021
@aesophor aesophor deleted the refactor-1 branch December 13, 2021 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants