Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

  • remove spurious log message, duplicates what is being sent to the output;
  • nit: update struct comment;
  • consolidate code via a parameterized function;
  • rename variable for clarity, it makes it easier to understand by avoiding negative condition check;
  • remove unused return value;
  • replace if blocks with switch.

@julio-lopez julio-lopez requested a review from redgoat650 April 2, 2025 01:06
@julio-lopez
Copy link
Collaborator Author

@Rohit-BM18 PTAL

@codecov
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

Attention: Patch coverage is 68.96552% with 9 lines in your changes missing coverage. Please review.

Project coverage is 76.33%. Comparing base (cb455c6) to head (9c517c1).
Report is 458 commits behind head on master.

Files with missing lines Patch % Lines
internal/diff/diff.go 68.96% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4484      +/-   ##
==========================================
+ Coverage   75.86%   76.33%   +0.46%     
==========================================
  Files         470      527      +57     
  Lines       37301    40000    +2699     
==========================================
+ Hits        28299    30533    +2234     
- Misses       7071     7459     +388     
- Partials     1931     2008      +77     

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez marked this pull request as ready for review April 2, 2025 01:24
@Rohit-BM18
Copy link
Collaborator

@Rohit-BM18 PTAL

Looks good to me, thanks for refactoring the code. compareMetadata function reduces duplication of code and is easier to read. I will keep this pattern in mind for the future.

@julio-lopez julio-lopez merged commit 5c8e58e into kopia:master Apr 2, 2025
26 of 27 checks passed
@julio-lopez julio-lopez deleted the cleanup/diff branch April 2, 2025 22:40
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