mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Remove unnecessary slicing
This commit is contained in:
parent
d4aaad0177
commit
0ab4d2b6c5
2
html.go
2
html.go
|
@ -902,7 +902,7 @@ func doubleSpace(out *bytes.Buffer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func isRelativeLink(link []byte) (yes bool) {
|
func isRelativeLink(link []byte) (yes bool) {
|
||||||
u, err := url.Parse(string(link[:]))
|
u, err := url.Parse(string(link))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return !u.IsAbs()
|
return !u.IsAbs()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user