From 36fefbbee1816b8ea58ccbe15668c92535d8c3c1 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Tue, 9 Jan 2024 08:25:12 +0700 Subject: [PATCH] downloader: verify fixempty (#9161) --- cmd/downloader/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/downloader/main.go b/cmd/downloader/main.go index 18e7c0d6f..f7251501b 100644 --- a/cmd/downloader/main.go +++ b/cmd/downloader/main.go @@ -229,7 +229,9 @@ func Downloader(ctx context.Context, logger log.Logger) error { } defer grpcServer.GracefulStop() - verifyFiles = strings.Split(_verifyFiles, ",") + if len(_verifyFiles) > 0 { + verifyFiles = strings.Split(_verifyFiles, ",") + } if verify || verifyFailfast || len(verifyFiles) > 0 { // remove and create .torrent files (will re-read all snapshots) if err = d.VerifyData(ctx, verifyFiles, verifyFailfast); err != nil { return err