diff --git a/doc/walker.go b/doc/walker.go index a3ccc3b0d..4b9efa713 100644 --- a/doc/walker.go +++ b/doc/walker.go @@ -117,12 +117,8 @@ func (w *walker) build(srcs []*source, nod *Node) ([]string, error) { if err != nil { if nogo { err = nil - } else if strings.Contains(err.Error(), "expected 'package'") { - log.Warn("walker: %s", err.Error()) - return nil, nil } else { - log.Error("walker", "Error occurs when check imports:") - log.Error("", "\t"+err.Error()) + log.Warn("walker: %s", err.Error()) return nil, nil } }