mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Inline a condition
This commit is contained in:
parent
58178d90cb
commit
059f5c0905
1 changed files with 1 additions and 2 deletions
|
@ -420,8 +420,7 @@ func sanitizeSrcsetAttr(baseURL, value string) string {
|
||||||
imageCandidates := ParseSrcSetAttribute(value)
|
imageCandidates := ParseSrcSetAttribute(value)
|
||||||
|
|
||||||
for _, imageCandidate := range imageCandidates {
|
for _, imageCandidate := range imageCandidates {
|
||||||
absoluteURL, err := urllib.AbsoluteURL(baseURL, imageCandidate.ImageURL)
|
if absoluteURL, err := urllib.AbsoluteURL(baseURL, imageCandidate.ImageURL); err == nil {
|
||||||
if err == nil {
|
|
||||||
imageCandidate.ImageURL = absoluteURL
|
imageCandidate.ImageURL = absoluteURL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue