diff options
| author | Rob Pike <r@golang.org> | 2015-05-07 11:49:49 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2015-05-07 20:13:14 +0000 |
| commit | 7bdeab1b2f54b22e7840b601b2d90188f6ee8ae0 (patch) | |
| tree | a344a0f3d604169d317b755579db9814887e6836 /src/text/template/parse | |
| parent | c6688b7b1ff5537177d54322559e1207434c7088 (diff) | |
| download | go-7bdeab1b2f54b22e7840b601b2d90188f6ee8ae0.tar.xz | |
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>
Diffstat (limited to 'src/text/template/parse')
| -rw-r--r-- | src/text/template/parse/lex.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/text/template/parse/lex.go b/src/text/template/parse/lex.go index 762d085e68..8f9fe1d4d8 100644 --- a/src/text/template/parse/lex.go +++ b/src/text/template/parse/lex.go @@ -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 { } } |
