Check if path is empty or not

pull/1093/head
Sujit 2020-12-28 10:20:49 +05:45
parent 6615774cb6
commit 0fed63deb3
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ func getGroupPath(prefix, path string) string {
return prefix
}
if path[0] != '/' {
if len(path) > 0 && path[0] != '/' {
path = "/" + path
}