From aa9bca810912f102a13a674ee30bf97f5667f662 Mon Sep 17 00:00:00 2001 From: tjp Date: Mon, 13 Nov 2023 07:27:56 -0700 Subject: lint and bug fixes --- gopher/gophermap/extended.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gopher/gophermap/extended.go') diff --git a/gopher/gophermap/extended.go b/gopher/gophermap/extended.go index 7d64fe0..f2ca3fc 100644 --- a/gopher/gophermap/extended.go +++ b/gopher/gophermap/extended.go @@ -193,6 +193,7 @@ func (edoc *ExtendedMapDocument) Compatible(cwd string, settings FileSystemSetti hidden := map[string]struct{}{} extensions := map[string]types.Status{} +lineloop: for num, item := range edoc.Lines { switch item.Type { case CommentType: @@ -252,9 +253,9 @@ func (edoc *ExtendedMapDocument) Compatible(cwd string, settings FileSystemSetti doc = append(doc, dirlist...) - break + break lineloop case EndDocType: - break + break lineloop default: doc = append(doc, item) } -- cgit v1.2.3