parent
e00fdae456
commit
0ab81896d9
1 changed files with 3 additions and 0 deletions
|
@ -556,6 +556,9 @@ func (c *collector) collectModulesTXT(owner Module) error {
|
|||
line := scanner.Text()
|
||||
line = strings.Trim(line, "# ")
|
||||
line = strings.TrimSpace(line)
|
||||
if line == "" {
|
||||
continue
|
||||
}
|
||||
parts := strings.Fields(line)
|
||||
if len(parts) != 2 {
|
||||
return fmt.Errorf("invalid modules list: %q", filename)
|
||||
|
|
Loading…
Add table
Reference in a new issue