Skip to content

Commit

Permalink
empty string case
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Feb 20, 2025
1 parent 401f064 commit 6370bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/repository/udmrepo/kopialib/lib_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ func writeInitParameters(ctx context.Context, repoOption udmrepo.RepoOptions, lo
p.FullCycle.Interval = udmrepo.EagerGCInterval
case udmrepo.NormalGC:
p.FullCycle.Interval = udmrepo.NormalGCInterval
case "": // do nothing
default:
return errors.Errorf("invalid full maintenance interval option %s", fullMaintIntervalOption)
}
Expand Down

0 comments on commit 6370bbb

Please sign in to comment.