1
0
mirror of https://github.com/golang/go synced 2024-11-17 18:34:44 -07:00

cmd/go/internal/mvs: remove useless type assertion

Change-Id: Ifdb351193cab1c0b905a1cde17993231f849644c
Reviewed-on: https://go-review.googlesource.com/c/go/+/436700
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
cuiweixie 2022-09-29 20:45:26 +08:00 committed by Gopher Robot
parent 2fedd335f0
commit fdcaae5734

View File

@ -166,7 +166,7 @@ func buildList(targets []module.Version, reqs Reqs, upgrade func(module.Version)
} }
return false return false
} }
return nil, NewBuildListError(err.(error), errPath, isUpgrade) return nil, NewBuildListError(err, errPath, isUpgrade)
} }
// The final list is the minimum version of each module found in the graph. // The final list is the minimum version of each module found in the graph.