From 91d5d3d067e1b06d7e78acca84c5fa6b2bd5ea2b Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 8 Dec 2013 16:16:27 -0500 Subject: [PATCH] Update --- doc/walker.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 } }