fix: correct handling opts.PostprocDisabled
All checks were successful
Pre-commit / pre-commit (pull_request) Successful in 5m35s
Update alr-git / changelog (push) Successful in 29s

This commit is contained in:
2025-06-25 08:07:58 +03:00
parent e8202060d8
commit db19133254
2 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ func (FileDownloader) Download(ctx context.Context, opts Options) (Type, string,
}
defer r.Close()
opts.PostprocDisabled = archive == "false"
postprocDisabled := opts.PostprocDisabled || archive == "false"
path := filepath.Join(opts.Destination, name)
fl, err := os.Create(path)
@ -154,7 +154,7 @@ func (FileDownloader) Download(ctx context.Context, opts Options) (Type, string,
}
// Проверка необходимости постобработки
if opts.PostprocDisabled {
if postprocDisabled {
return TypeFile, name, nil
}