1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:18:35 -06:00

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 <bradfitz@golang.org>
This commit is contained in:
Rob Pike 2015-05-07 11:49:49 -07:00
parent c6688b7b1f
commit 7bdeab1b2f

View File

@ -177,9 +177,6 @@ func (l *lexer) nextItem() item {
// drain drains the output so the lexing goroutine will exit.
// Called by the parser, not in the lexing goroutine.
func (l *lexer) drain() {
if l == nil {
return
}
for range l.items {
}
}