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

Minor fixes #50

Merged
merged 2 commits into from
Oct 1, 2021
Merged

Minor fixes #50

merged 2 commits into from
Oct 1, 2021

Conversation

rowanseymour
Copy link
Member

No description provided.

@codecov-commenter
Copy link

Codecov Report

Merging #50 (7734e03) into main (36042bf) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   67.96%   68.08%   +0.12%     
==========================================
  Files           3        3              
  Lines         849      846       -3     
==========================================
- Hits          577      576       -1     
+ Misses        156      154       -2     
  Partials      116      116              
Impacted Files Coverage Δ
archiver.go 67.62% <100.00%> (+0.14%) ⬆️

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 36042bf...7734e03. Read the comment docs.

@@ -91,11 +91,6 @@ func (a *Archive) endDate() time.Time {
return endDate
}

func (a *Archive) coversDate(d time.Time) bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

not used

if err != nil {
return fmt.Errorf("directory '%s' is not writable", path)
}

defer testFile.Close()
Copy link
Member Author

Choose a reason for hiding this comment

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

should be called after err check

@rowanseymour rowanseymour merged commit 30f28aa into main Oct 1, 2021
@rowanseymour rowanseymour deleted the minor_fixes branch October 1, 2021 16: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.

2 participants