From: guoguangwu Date: Tue, 12 Mar 2024 07:37:52 +0000 (+0000) Subject: os: remove useless error check X-Git-Tag: go1.25rc3~5^2~25 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d826bf4d74;p=gostls13.git os: remove useless error check Change-Id: Ifeb5fecc6e28b79ac03e7dc2ce9531fe5eed3097 GitHub-Last-Rev: 087cf95965920c96befad5adb9e481bdf913d50a GitHub-Pull-Request: golang/go#66260 Reviewed-on: https://go-review.googlesource.com/c/go/+/570895 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Sean Liao Auto-Submit: Dmitri Shuralyov Reviewed-by: Cherry Mui Reviewed-by: Florian Lehner Reviewed-by: Rob Pike --- diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index 89a61f0229..515d1c1359 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -64,9 +64,6 @@ func TestSameWindowsFile(t *testing.T) { } p := filepath.VolumeName(path) + filepath.Base(path) - if err != nil { - t.Fatal(err) - } ia3, err := os.Stat(p) if err != nil { t.Fatal(err)