]> Cypherpunks.ru repositories - gostls13.git/commitdiff
text/template/parse: remove redundant return
authorAriel Mashraki <ariel@mashraki.co.il>
Thu, 23 Jan 2020 21:00:29 +0000 (23:00 +0200)
committerRob Pike <r@golang.org>
Thu, 23 Jan 2020 23:07:10 +0000 (23:07 +0000)
Change the `itemChar` clause to be like all other clauses
that don't return a different state function than the default.

Change-Id: I56c863a7d699c1264b24b42ef23138ec47eaacd8
Reviewed-on: https://go-review.googlesource.com/c/go/+/216117
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/text/template/parse/lex.go

index 3d57708796ca795ef0c485ad5e630f3a8f5a09c1..30371f28626761633106b1dc4460833cff83a9a6 100644 (file)
@@ -411,7 +411,6 @@ func lexInsideAction(l *lexer) stateFn {
                }
        case r <= unicode.MaxASCII && unicode.IsPrint(r):
                l.emit(itemChar)
-               return lexInsideAction
        default:
                return l.errorf("unrecognized character in action: %#U", r)
        }