aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dump_repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dump_repo.go')
-rw-r--r--cmd/dump_repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go
index 8dd4fd86e7..a75b2d1b94 100644
--- a/cmd/dump_repo.go
+++ b/cmd/dump_repo.go
@@ -137,8 +137,8 @@ func runDumpRepository(ctx context.Context, cmd *cli.Command) error {
opts.PullRequests = true
opts.ReleaseAssets = true
} else {
- units := strings.Split(cmd.String("units"), ",")
- for _, unit := range units {
+ units := strings.SplitSeq(cmd.String("units"), ",")
+ for unit := range units {
switch strings.ToLower(strings.TrimSpace(unit)) {
case "":
continue