summaryrefslogtreecommitdiffhomepage
path: root/modules.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-12-31 22:51:55 -0700
committerMatthew Holt <[email protected]>2019-12-31 22:51:55 -0700
commit3d9f8eac08e172d99eafb396f161263fd444c073 (patch)
tree747de0d1ee29c819a61ec4d2a2dfc723f6732a7b /modules.go
parent06ea0a52950ef6d1dd327c10e247ada1b71a5c5d (diff)
downloadcaddy-3d9f8eac08e172d99eafb396f161263fd444c073.tar.gz
caddy-3d9f8eac08e172d99eafb396f161263fd444c073.zip
Couple of minor fixes, update readmev2.0.0-beta12
Diffstat (limited to 'modules.go')
-rw-r--r--modules.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.go b/modules.go
index 46fdd3b91..b9e5b4e85 100644
--- a/modules.go
+++ b/modules.go
@@ -96,7 +96,7 @@ type ModuleID string
func (id ModuleID) Namespace() string {
lastDot := strings.LastIndex(string(id), ".")
if lastDot < 0 {
- return string(id)
+ return ""
}
return string(id)[:lastDot]
}