Skip to content

Commit 7bdeab1

Browse files
committed
text/template: delete obsolete nil check
This was added during testing but is unnecessary. Thanks to gravis on GitHub for catching it. See #10574. Change-Id: I4a8f76d237e67f5a0ea189a0f3cadddbf426778a Reviewed-on: https://go-review.googlesource.com/9841 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent c6688b7 commit 7bdeab1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/text/template/parse/lex.go

-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ func (l *lexer) nextItem() item {
177177
// drain drains the output so the lexing goroutine will exit.
178178
// Called by the parser, not in the lexing goroutine.
179179
func (l *lexer) drain() {
180-
if l == nil {
181-
return
182-
}
183180
for range l.items {
184181
}
185182
}

0 commit comments

Comments
 (0)