refactor(downloader): improve structure and readability

This commit is contained in:
Mathis Maquenne
2025-09-11 00:05:17 +02:00
parent 8c9b327b2c
commit 9d87f635d0
4 changed files with 290 additions and 145 deletions
+15
View File
@@ -0,0 +1,15 @@
package downloader
func handleError(err error) downloadResult {
if path, ok := IsSkipError(err); ok {
return downloadResult{
skipped: true,
path: path,
}
}
return downloadResult{
success: false,
err: err,
}
}