diff --git a/realize/watcher.go b/realize/watcher.go index ddc6e30..1f7fbce 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -193,7 +193,9 @@ func slash(str string) string { str = "/" + str } if string(str[len(str)-1]) == "/" { - if string(str) == "/" { + if len(str) == 0 { + return str + } else if string(str) == "/" { str = "" } else { str = str[0 : len(str)-2]