[#180] api: Format object_list.go

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2021-07-29 17:23:36 +03:00
parent afff616675
commit 7291b81040

View file

@ -37,7 +37,6 @@ func encodeV1(p *layer.ListObjectsParamsV1, list *layer.ListObjectsInfoV1) *List
Prefix: p.Prefix, Prefix: p.Prefix,
MaxKeys: p.MaxKeys, MaxKeys: p.MaxKeys,
Delimiter: p.Delimiter, Delimiter: p.Delimiter,
IsTruncated: list.IsTruncated, IsTruncated: list.IsTruncated,
NextMarker: list.NextMarker, NextMarker: list.NextMarker,
} }
@ -78,9 +77,7 @@ func encodeV2(p *layer.ListObjectsParamsV2, list *layer.ListObjectsInfoV2) *List
MaxKeys: p.MaxKeys, MaxKeys: p.MaxKeys,
Delimiter: s3PathEncode(p.Delimiter, p.Encode), Delimiter: s3PathEncode(p.Delimiter, p.Encode),
StartAfter: s3PathEncode(p.StartAfter, p.Encode), StartAfter: s3PathEncode(p.StartAfter, p.Encode),
IsTruncated: list.IsTruncated, IsTruncated: list.IsTruncated,
ContinuationToken: p.ContinuationToken, ContinuationToken: p.ContinuationToken,
NextContinuationToken: list.NextContinuationToken, NextContinuationToken: list.NextContinuationToken,
} }