Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18c1c94

Browse files
authored
fix: remove check if lock config exists before set (#5203)
1 parent b9f3023 commit 18c1c94

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/retention-set.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,10 @@ func mainRetentionSet(cliCtx *cli.Context) error {
148148

149149
target, versionID, recursive, rewind, withVersions, mode, validity, unit, bypass, bucketMode := parseSetRetentionArgs(cliCtx)
150150

151-
fatalIfBucketLockNotSupported(ctx, target)
152-
153151
if bucketMode {
154152
return setBucketLock(target, mode, validity, unit)
155153
}
154+
fatalIfBucketLockNotSupported(ctx, target)
156155

157156
if withVersions && rewind.IsZero() {
158157
rewind = time.Now().UTC()

0 commit comments

Comments
 (0)