String concatenation/conversion/formatting improvements (#393)

* Magic strings

* Comment, format and builder fixes
This commit is contained in:
lozdog245
2019-12-09 11:44:01 +11:00
committed by Adrian Gallagher
parent 17a786536d
commit 8c30505d46
32 changed files with 122 additions and 128 deletions

View File

@@ -282,7 +282,7 @@ func GetURIPath(uri string) string {
return ""
}
if urip.RawQuery != "" {
return fmt.Sprintf("%s?%s", urip.Path, urip.RawQuery)
return urip.Path + "?" + urip.RawQuery
}
return urip.Path
}