]> Cypherpunks repositories - gostls13.git/commit
cmd/link: remove unnecessary use of sync.Once alongside sync.Mutex
authorRuss Cox <rsc@golang.org>
Thu, 27 Oct 2022 02:16:52 +0000 (22:16 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 2 Nov 2022 14:38:08 +0000 (14:38 +0000)
commit0aeda5afe5972c1b5f76d5ee78cbc5c96474ca89
tree3ef6bef03f311e6d77aecf6d8d596fdb64679b87
parent30b240b102652a7cf6b7df0748b4bc69f496e0bc
cmd/link: remove unnecessary use of sync.Once alongside sync.Mutex

There does not seem to be any point to this sync.Once.
I noticed because I was surveying uses of sync.Once to
understand usage patterns. This seems to be a dreg left over
from some earlier instance of the code.

Change-Id: I99dd258d865a41d0e8f6cfa55887855e477fb9c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/445755
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/errors.go