mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
Fix formatting
This commit is contained in:
+2
-2
@@ -183,12 +183,12 @@ func (storage *PublishedStorage) putFile(path string, source io.ReadSeeker) erro
|
|||||||
func (storage *PublishedStorage) Remove(path string) error {
|
func (storage *PublishedStorage) Remove(path string) error {
|
||||||
params := &s3.DeleteObjectInput{
|
params := &s3.DeleteObjectInput{
|
||||||
Bucket: aws.String(storage.bucket),
|
Bucket: aws.String(storage.bucket),
|
||||||
Key: aws.String(filepath.Join(storage.prefix,path)),
|
Key: aws.String(filepath.Join(storage.prefix, path)),
|
||||||
}
|
}
|
||||||
_, err := storage.s3.DeleteObject(params)
|
_, err := storage.s3.DeleteObject(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage))
|
return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage))
|
||||||
}
|
}
|
||||||
|
|
||||||
if storage.plusWorkaround && strings.Contains(path, "+") {
|
if storage.plusWorkaround && strings.Contains(path, "+") {
|
||||||
// try to remove workaround version, but don't care about result
|
// try to remove workaround version, but don't care about result
|
||||||
|
|||||||
Reference in New Issue
Block a user