From c8635e351f04c77886c9a9d68110a9a838f36c21 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Fri, 8 Nov 2024 09:52:57 -0800 Subject: [PATCH] update imageSink --- pkg/pipeline/sink/image.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/pipeline/sink/image.go b/pkg/pipeline/sink/image.go index 0a8e8062..deeaefcf 100644 --- a/pkg/pipeline/sink/image.go +++ b/pkg/pipeline/sink/image.go @@ -150,16 +150,16 @@ func (s *ImageSink) Close() error { return nil } -func (s *ImageSink) UploadManifest(filepath string) (string, string, bool, error) { +func (s *ImageSink) UploadManifest(filepath string) (string, bool, error) { if s.DisableManifest && !s.ManifestRequired() { - return "", "", false, nil + return "", false, nil } storagePath := path.Join(s.StorageDir, path.Base(filepath)) - location, _, presignedUrl, err := s.Upload(filepath, storagePath, types.OutputTypeJSON, false) + location, _, err := s.Upload(filepath, storagePath, types.OutputTypeJSON, false) if err != nil { - return "", "", false, err + return "", false, err } - return location, presignedUrl, true, nil + return location, true, nil }