From ceaa37e3ff294be6360b36b30270e423d23fa152 Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Tue, 27 Feb 2024 19:20:14 +0300 Subject: [PATCH] fix: zero condition --- pkg/file/redundancy/getter/getter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/file/redundancy/getter/getter.go b/pkg/file/redundancy/getter/getter.go index bc2828e38bc..ce1181b045d 100644 --- a/pkg/file/redundancy/getter/getter.go +++ b/pkg/file/redundancy/getter/getter.go @@ -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 {