]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.25] Revert "errors: optimize errors.Join for single unwrappable...
authorDamien Neil <dneil@google.com>
Tue, 23 Dec 2025 00:35:42 +0000 (16:35 -0800)
committerJunyang Shao <shaojunyang@google.com>
Wed, 7 Jan 2026 18:12:19 +0000 (10:12 -0800)
commitddcf27fc8c8af1be6304dbe772b76fcdd70d4099
tree29ee7143bd431f70c36bb82a4ac358702a2a514b
parent14f50f6e3e336873be5bc8ca2bb323b55ba65b55
[release-branch.go1.25] Revert "errors: optimize errors.Join for single unwrappable errors"

This reverts CL 635115.

Reason for revert: The new behavior does not match the function documentation.

For #76961
Fixes #76973

Change-Id: If2450aa4efba28c7a12887a5b306c231a836e740
Reviewed-on: https://go-review.googlesource.com/c/go/+/731981
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit 1b3db48db7afc3fe17440af28cdeac67a0d048f1)
Reviewed-on: https://go-review.googlesource.com/c/go/+/734520
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/errors/join.go
src/errors/join_test.go