cmd/mediaapi-integration-tests: Simplify slice initialisation

This commit is contained in:
Robert Swain 2017-06-07 16:38:04 +02:00
parent dac32b386d
commit 82f9ac5cc9

View file

@ -145,14 +145,7 @@ func main() {
}
func getMediaURI(scheme, host, endpoint string, components []string) string {
pathComponents := []string{
host,
"api",
"_matrix",
"media",
"v1",
endpoint,
}
pathComponents := []string{host, "api/_matrix/media/v1", endpoint}
pathComponents = append(pathComponents, components...)
return scheme + path.Join(pathComponents...)
}