]> Cypherpunks repositories - gostls13.git/commit
cmd/go: break after terminal loop condition
authorMark Rushakoff <mark.rushakoff@gmail.com>
Thu, 8 Oct 2020 02:12:43 +0000 (02:12 +0000)
committerBryan C. Mills <bcmills@google.com>
Fri, 23 Oct 2020 20:38:27 +0000 (20:38 +0000)
commit75032ad8cfac4aefbacd17b47346ac8c1b5ff33f
tree33fc048d54c52793c09561e1d61ca61f6b0b570b
parentf8376a55b06304bd24612d10812cf8ada29a5c84
cmd/go: break after terminal loop condition

After the first time needCostly is set to true, there is no need to
continue checking the remaining args.

Change-Id: I07171ce50d20e2a917117a0f84c442fe978cb274
GitHub-Last-Rev: 6d0c19341b7a85d507c3ec4967bab5f83b0fad8d
GitHub-Pull-Request: golang/go#41859
Reviewed-on: https://go-review.googlesource.com/c/go/+/260638
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/envcmd/env.go