diff options
Diffstat (limited to 'modules/collect.go')
-rw-r--r-- | modules/collect.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/collect.go b/modules/collect.go index 24b80a1d7..731a991b8 100644 --- a/modules/collect.go +++ b/modules/collect.go @@ -250,8 +250,7 @@ func (c *collector) add(owner *moduleAdapter, moduleImport Import, disabled bool } if moduleDir == "" { - - if c.GoModulesFilename != "" && c.isProbablyModule(modulePath) { + if c.GoModulesFilename != "" && isProbablyModule(modulePath) { // Try to "go get" it and reload the module configuration. if err := c.Get(modulePath); err != nil { return nil, err @@ -301,10 +300,6 @@ func (c *collector) add(owner *moduleAdapter, moduleImport Import, disabled bool ma.path = modulePath } - if err := ma.validateAndApplyDefaults(c.fs); err != nil { - return nil, err - } - if !moduleImport.IgnoreConfig { if err := c.applyThemeConfig(ma); err != nil { return nil, err |