start making staticcheck happier

This commit is contained in:
Daniel Martí
2019-05-27 10:14:26 +01:00
parent f125ef3fa9
commit 9b9186f7d4
8 changed files with 16 additions and 21 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func readJSON(input io.Reader, data interface{}) error {
func URLJoin(endpoint string, paths ...string) string {
u, err := url.Parse(endpoint)
if err != nil {
panic(fmt.Errorf("Unable to parse endpoint: %s", endpoint))
panic(fmt.Errorf("unable to parse endpoint: %s", endpoint))
}
paths = append([]string{u.Path}, paths...)
u.Path = path.Join(paths...)