fix: add option to disable asset storage (#1878)

* fix: add no storage option

* improve error handling
This commit is contained in:
Livio Amstutz
2021-07-02 13:55:52 +02:00
committed by GitHub
parent 992b598100
commit 91f1c88d4e
3 changed files with 58 additions and 8 deletions

View File

@@ -129,9 +129,6 @@ func (m *LabelPolicy) OnSuccess() error {
}
func (p *LabelPolicy) CleanUpBucket(policy *iam_model.LabelPolicyView) {
if p.static == nil {
return
}
ctx := context.Background()
objects, err := p.static.ListObjectInfos(ctx, policy.AggregateID, domain.LabelPolicyPrefix+"/", false)
if err != nil {