summaryrefslogtreecommitdiff
path: root/modules.go
diff options
context:
space:
mode:
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 0ed0d0a..a257a69 100644
--- a/modules.go
+++ b/modules.go
@@ -86,7 +86,7 @@ func GetModules(scope string) []Module {
// handle the special case of an empty scope, which
// should match only the top-level modules
- if len(scopeParts) == 1 && scopeParts[0] == "" {
+ if scope == "" {
scopeParts = []string{}
}