fix error not returned (#11)

This commit is contained in:
aler9
2020-11-05 09:43:19 +01:00
parent 9ecbb6be67
commit 8901bf17e7
2 changed files with 5 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ func (u *URL) AddControlAttribute(controlPath string) {
}
// RemoveControlAttribute removes a control attribute from an URL.
// We assume that the base path and control attribute are divided with a slash.
// We assume that the base path and control attribute are divided with a slash.
func (u *URL) RemoveControlAttribute() {
_, controlPath, ok := u.BasePathControlAttr()
if !ok {