Skip to content

Commit de07066

Browse files
committed
fix: Resolve relative URLs when downloading assets
1 parent f9ea992 commit de07066

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

extract.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,6 @@ func downloadImages(ctx context.Context, urls []string) []byte {
179179
return cmp.Compare(a.url, b.url)
180180
})
181181

182-
fetched = lo.Without(fetched, nil)
183-
// conc/pool doesn't guarantee result order matches submission order;
184-
// sort by URL so the images/N.ext numbering is deterministic regardless
185-
// of which fetch happens to finish first.
186-
slices.SortFunc(fetched, func(a, b *fetchedImage) int {
187-
return cmp.Compare(a.url, b.url)
188-
})
189-
190182
var buf bytes.Buffer
191183
zw := zip.NewWriter(&buf)
192184
assetMap := make(map[string]string)

0 commit comments

Comments
 (0)