Merge pull request #1396 from crazy-max/fix-indent

use double spaces with json marshal indent
This commit is contained in:
Tõnis Tiigi 2022-11-16 14:54:13 -08:00 committed by GitHub
commit aa1f4389b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ func (r *Resolver) Combine(ctx context.Context, srcs []*Source) ([]byte, ocispec
},
}
idxBytes, err := json.MarshalIndent(idx, "", " ")
idxBytes, err := json.MarshalIndent(idx, "", " ")
if err != nil {
return nil, ocispec.Descriptor{}, errors.Wrap(err, "failed to marshal index")
}