From 90f124c26509ea7ec80ec1aed36e1b9ec28c812c Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Thu, 5 Sep 2024 15:24:29 +0800 Subject: [PATCH] resolve comments Signed-off-by: Xiaoxuan Wang --- cmd/oras/root/manifest/index/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/oras/root/manifest/index/create.go b/cmd/oras/root/manifest/index/create.go index 09ff30887..3e5a2754f 100644 --- a/cmd/oras/root/manifest/index/create.go +++ b/cmd/oras/root/manifest/index/create.go @@ -142,7 +142,7 @@ func getPlatform(ctx context.Context, target oras.ReadOnlyTarget, manifestBytes return nil, err } // 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) } // fetch config content