8000 remove unused file internal/file/tar.go and its test by seiyab · Pull Request #1724 · anchore/grype · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

remove unused file internal/file/tar.go and its test #1724

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

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

seiyab
Copy link
Contributor
@seiyab seiyab commented Feb 21, 2024

TL;DR
internal/file/tar.go looks unused since #657.

Context
I scanned bugs similar to anchore/go-logger#13 just with curiosity and found that internal/file/tar.go has one (written file can be broken forgetting truncation). Investigating it, I also found that it isn't used. Running git bisect run sh -c "git grep -q 'file.UnTarGz'", #657 looks to remove the last use of the file.

Signed-off-by: seiya <20365512+seiyab@users.noreply.github.com>
@seiyab seiyab force-pushed the remove-unused-file-2 branch from 46b5d79 to 5d55f42 Compare February 21, 2024 13:16
Copy link
Contributor
@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks again @seiyab!

@kzantow kzantow added the changelog-ignore Don't include this issue in the release changelog label Feb 21, 2024
@kzantow kzantow merged commit 5f7620f into anchore:main Feb 21, 2024
@seiyab seiyab deleted the remove-unused-file-2 branch February 21, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-ignore Don't include this issue in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0