From c803a3be8ceb24e370b9291557f6cedf6b685d90 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Mon, 6 Jan 2025 19:59:37 +0100 Subject: [PATCH] further clarify --- pkg/snapshot/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/snapshot/store.go b/pkg/snapshot/store.go index cfa9075285..a78b06222e 100644 --- a/pkg/snapshot/store.go +++ b/pkg/snapshot/store.go @@ -798,7 +798,8 @@ func upsertBackupStorageLocation(ctx context.Context, bsl *velerov1.BackupStorag return nil, errors.Wrap(err, "failed to create velero client") } - if err = veleroClient.Update(ctx, bsl); err == nil { + err = veleroClient.Update(ctx, bsl) + if err == nil { return bsl, nil }