diff options
| -rw-r--r-- | inline_parser.go | 10 | ||||
| -rw-r--r-- | parser.go | 5 | ||||
| -rw-r--r-- | table_parser.go | 5 |
3 files changed, 0 insertions, 20 deletions
diff --git a/inline_parser.go b/inline_parser.go index 561cab7..84fae21 100644 --- a/inline_parser.go +++ b/inline_parser.go @@ -74,11 +74,6 @@ func (pi *inlineParser) do() { continue } - // We use if-condition with "continue" to break and continue - // the for-loop, so it is not possible to use switch-case - // here. - // - //nolint:gocritic if pi.c == '+' { if pi.isEscaped { pi.escape() @@ -257,11 +252,6 @@ func (pi *inlineParser) do() { continue } - // We use if-condition with "continue" to break and - // continue the for-loop, so it is not possible - // to use switch-case here. - // - //nolint:gocritic if pi.nextc == '<' { if pi.parseCrossRef() { continue @@ -328,11 +328,6 @@ func applySubstitutions(doc *Document, content []byte) []byte { for x < len(raw) { c = raw[x] - // We use if-condition with "continue" to break and continue - // the for-loop, so it is not possible to use switch-case - // here. - // - //nolint:gocritic if c == '{' { newRaw, ok = parseAttrRef(doc, raw, x) if ok { diff --git a/table_parser.go b/table_parser.go index 3a5f56e..4f9c7f8 100644 --- a/table_parser.go +++ b/table_parser.go @@ -79,11 +79,6 @@ func (pt *tableParser) toCells() { tokenTrim = strings.TrimSpace(token) l = len(tokenTrim) for { - // We use if-condition with "continue" to break and continue - // the for-loop, so it is not possible to use switch-case - // here. - // - //nolint:gocritic if c == '\n' { if l > 0 { cell.writeString(token) |
