]> Cypherpunks repositories - gostls13.git/commitdiff
text/template/parse: remove self-assignment.
authorDavid Symonds <dsymonds@golang.org>
Tue, 5 Mar 2013 00:16:58 +0000 (11:16 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 5 Mar 2013 00:16:58 +0000 (11:16 +1100)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7431054

src/pkg/text/template/parse/parse.go

index c0fb9274a3d584e2697defca82186f1b01a1ab21..03bd22d95c76b9e7a21a6ddf4d7e3b4254abb5f2 100644 (file)
@@ -445,7 +445,6 @@ func (t *Tree) parseControl(context string) (pos Pos, line int, pipe *PipeNode,
                if next.Type() != nodeEnd {
                        t.errorf("expected end; found %s", next)
                }
-               elseList = elseList
        }
        return pipe.Position(), line, pipe, list, elseList
 }