Remove unnecessary slicing

This commit is contained in:
Gustavo Bittencourt 2016-01-07 22:29:43 -02:00
parent d4aaad0177
commit 0ab4d2b6c5

View File

@ -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()
} }