diff --git a/internal/reader/sanitizer/sanitizer.go b/internal/reader/sanitizer/sanitizer.go index cd4207d3e30..5e31a6360ec 100644 --- a/internal/reader/sanitizer/sanitizer.go +++ b/internal/reader/sanitizer/sanitizer.go @@ -428,8 +428,7 @@ func sanitizeSrcsetAttr(baseURL, value string) string { imageCandidates := ParseSrcSetAttribute(value) for _, imageCandidate := range imageCandidates { - absoluteURL, err := urllib.AbsoluteURL(baseURL, imageCandidate.ImageURL) - if err == nil { + if absoluteURL, err := urllib.AbsoluteURL(baseURL, imageCandidate.ImageURL); err == nil { imageCandidate.ImageURL = absoluteURL } }