aboutsummaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorAriel Mashraki <ariel@mashraki.co.il>2020-01-23 23:00:29 +0200
committerRob Pike <r@golang.org>2020-01-23 23:07:10 +0000
commit8d7be1e3c9a98191f8c900087025c5e78b73d962 (patch)
tree7e928db6abfc1c7aee99c32984a1acd8faa1b994 /src/text
parent953bc8f391a63adf00bac2515dba62abe8a1e2c2 (diff)
downloadgo-8d7be1e3c9a98191f8c900087025c5e78b73d962.tar.gz
go-8d7be1e3c9a98191f8c900087025c5e78b73d962.zip
text/template/parse: remove redundant return
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>
Diffstat (limited to 'src/text')
-rw-r--r--src/text/template/parse/lex.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/text/template/parse/lex.go b/src/text/template/parse/lex.go
index 3d57708796..30371f2862 100644
--- a/src/text/template/parse/lex.go
+++ b/src/text/template/parse/lex.go
@@ -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)
}