Skip to content

rename vars to prevent shadowing and for clarity - #39

Merged
thaJeztah merged 1 commit into
moby:mainfrom
thaJeztah:less_shadow
Jul 15, 2026
Merged

rename vars to prevent shadowing and for clarity#39
thaJeztah merged 1 commit into
moby:mainfrom
thaJeztah:less_shadow

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Comment thread diff.go
// #nosec G305 -- The joined path is guarded against path traversal.
path := filepath.Join(dest, hdr.Name)
rel, err := filepath.Rel(dest, path)
dstPath := filepath.Join(dest, hdr.Name)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

existing issue; will be fixed elsewhere if needed.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.89%. Comparing base (2cd730e) to head (da5d490).
⚠️ Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
diff.go 80.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
- Coverage   66.35%   64.89%   -1.47%     
==========================================
  Files          42       42              
  Lines        2027     2031       +4     
==========================================
- Hits         1345     1318      -27     
- Misses        497      537      +40     
+ Partials      185      176       -9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thaJeztah
thaJeztah merged commit 9ebd0e7 into moby:main Jul 15, 2026
11 of 12 checks passed
@thaJeztah
thaJeztah deleted the less_shadow branch July 15, 2026 12:46
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.

4 participants