Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
  • Loading branch information
Xiaoxuan Wang authored and wangxiaoxuan273 committed Sep 6, 2024
1 parent 0262372 commit 90f124c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/root/manifest/index/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func getPlatform(ctx context.Context, target oras.ReadOnlyTarget, manifestBytes
return nil, err

Check warning on line 142 in cmd/oras/root/manifest/index/create.go

View check run for this annotation

Codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L142

Added line #L142 was not covered by tests
}
// if config size is larger than 4 MiB, discontinue the fetch
if manifest.Config.Size >= maxConfigSize {
if manifest.Config.Size > maxConfigSize {
return nil, fmt.Errorf("config size %v exceeds MaxBytes %v: %w", manifest.Config.Size, maxConfigSize, errdef.ErrSizeExceedsLimit)

Check warning on line 146 in cmd/oras/root/manifest/index/create.go

View check run for this annotation

Codecov / codecov/patch

cmd/oras/root/manifest/index/create.go#L146

Added line #L146 was not covered by tests
}
// fetch config content
Expand Down

0 comments on commit 90f124c

Please sign in to comment.