From 8eff7d4dd3ab00c14aaf13bc8cc27369a7df0c33 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Sat, 22 Aug 2020 05:42:27 +0300 Subject: [PATCH] Refactoring DeleteObject/DeleteObjects methods - methods should return api.DeleteErrors - DeleteObjects should return only slice of errors - don't add nil errors Signed-off-by: Evgeniy Kulikov --- api/layer/layer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/layer/layer.go b/api/layer/layer.go index 77379826..5607de15 100644 --- a/api/layer/layer.go +++ b/api/layer/layer.go @@ -69,7 +69,7 @@ type ( ListObjects(ctx context.Context, p *ListObjectsParams) (*ListObjectsInfo, error) DeleteObject(ctx context.Context, bucket, object string) error - DeleteObjects(ctx context.Context, bucket string, objects []string) ([]error, error) + DeleteObjects(ctx context.Context, bucket string, objects []string) []error } )