summaryrefslogtreecommitdiff
path: root/modules.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-12-31 22:51:55 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-12-31 22:51:55 -0700
commit3d9f8eac08e172d99eafb396f161263fd444c073 (patch)
tree747de0d1ee29c819a61ec4d2a2dfc723f6732a7b /modules.go
parent06ea0a52950ef6d1dd327c10e247ada1b71a5c5d (diff)
Couple of minor fixes, update readme
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 46fdd3b..b9e5b4e 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]
}