From 3d9f8eac08e172d99eafb396f161263fd444c073 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 31 Dec 2019 22:51:55 -0700 Subject: Couple of minor fixes, update readme --- modules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules.go') 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] } -- cgit v1.2.3