-
Notifications
You must be signed in to change notification settings - Fork 594
refactor(general): misc cleanups #4615
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request performs general code cleanups and refactoring across multiple modules. Key changes include:
- Renaming functions from exported to unexported (e.g. Compressed → compressed, IndirectObjectID → indirectObjectID)
- Replacing panic calls with impossible.PanicOnError across several modules and using modern idioms such as maps.Clone for label copying
- Adding checklock annotations and renaming local variables for improved clarity (e.g. packNumberByPrefix → packCountByPrefix)
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| repo/object/objectid.go | Function renames and comment updates for unexported functions |
| repo/object/object_writer.go | Updates to locking annotations and renaming flushBuffer to flushBufferLocked |
| repo/manifest/manifest_manager.go | Replacing custom label copy with maps.Clone |
| repo/manifest/committed_manifest_manager.go | Replacing panic calls with impossible.PanicOnError |
| repo/maintenance/content_rewrite.go | Renaming variables for clarity |
| repo/compression/compressor.go | Replacing panic calls with impossible.PanicOnError |
| internal/server/source_manager.go | Change made to control flow in snapshot handling |
| internal/crypto/key_derivation.go | Replacing panic calls with impossible.PanicOnError |
| cli/json_output.go | Replacing panic calls with impossible.PanicOnError |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4615 +/- ##
==========================================
+ Coverage 75.86% 76.41% +0.55%
==========================================
Files 470 529 +59
Lines 37301 40162 +2861
==========================================
+ Hits 28299 30691 +2392
- Misses 7071 7456 +385
- Partials 1931 2015 +84 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.