corrected the directory layout

This commit is contained in:
Chapuis Bertil
2015-09-17 09:17:42 +02:00
parent 016bbf619a
commit 265814c7a5
3 changed files with 17 additions and 20 deletions

View File

@@ -29,13 +29,9 @@ func ParseRepositoryName(n string) (string, error) {
}
// Returns the backend type for a given path
func BackendType(u string) backend.Type {
func BackendType(u string) string {
s := strings.Split(u, "/")
var bt backend.Type
if len(s) > 2 {
bt = parseBackendType(s[2])
}
return bt
return s[2]
}
func parseBackendType(u string) backend.Type {