Skip to content

Commit

Permalink
text/template: delete obsolete nil check
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
robpike committed May 7, 2015
1 parent c6688b7 commit 7bdeab1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/text/template/parse/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
}
Expand Down

0 comments on commit 7bdeab1

Please sign in to comment.