Skip to content

refactor: use iter for cleaner code#1637

Merged
shizhMSFT merged 6 commits into
oras-project:mainfrom
shizhMSFT:refactor_range
Feb 27, 2025
Merged

refactor: use iter for cleaner code#1637
shizhMSFT merged 6 commits into
oras-project:mainfrom
shizhMSFT:refactor_range

Conversation

@shizhMSFT

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Refactor code for better readability, leveraging the new iter package.

@codecov

codecov Bot commented Feb 26, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.45%. Comparing base (0bd94d6) to head (cdd57bd).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1637   +/-   ##
=======================================
  Coverage   84.45%   84.45%           
=======================================
  Files         125      125           
  Lines        5661     5661           
=======================================
  Hits         4781     4781           
  Misses        625      625           
  Partials      255      255           

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

Comment thread cmd/oras/internal/option/parser.go Outdated

@JeyJeyGao JeyJeyGao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, but IANAM

Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@shizhMSFT shizhMSFT merged commit f21d275 into oras-project:main Feb 27, 2025
@shizhMSFT shizhMSFT deleted the refactor_range branch February 27, 2025 09:58
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.

3 participants