os: remove useless error check

Change-Id: Ifeb5fecc6e28b79ac03e7dc2ce9531fe5eed3097
GitHub-Last-Rev: 087cf95965
GitHub-Pull-Request: golang/go#66260
Reviewed-on: https://go-review.googlesource.com/c/go/+/570895
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
guoguangwu 2024-03-12 07:37:52 +00:00 committed by Gopher Robot
parent bb07e55aff
commit d826bf4d74

View file

@ -64,9 +64,6 @@ func TestSameWindowsFile(t *testing.T) {
} }
p := filepath.VolumeName(path) + filepath.Base(path) p := filepath.VolumeName(path) + filepath.Base(path)
if err != nil {
t.Fatal(err)
}
ia3, err := os.Stat(p) ia3, err := os.Stat(p)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)