Skip to content

Commit

Permalink
fix(exporter): fix zip nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Oct 19, 2023
1 parent 7effc55 commit 042100b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/exporter/html/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ func (exp *ZIPExporter) processURLAttribute(ctx context.Context, output *zip.Wri

url := dom.GetAttribute(node, attrName)
asset, err := exp.processURL(ctx, url, baseURL.String())
if err != nil && err != errSkippedURL {
if err != nil {
if err == errSkippedURL {
return nil
}
return err
}

Expand Down

0 comments on commit 042100b

Please sign in to comment.