Skip to content

Commit

Permalink
fix: zero condition
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Feb 27, 2024
1 parent 97b404e commit ceaa37e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/file/redundancy/getter/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ func (g *decoder) runStrategy(ctx context.Context, s Strategy) error {
}
}

if len(m) == 0 {
return nil
}

c := make(chan error, len(m))

for _, i := range m {
Expand Down

0 comments on commit ceaa37e

Please sign in to comment.