From 087cf95965920c96befad5adb9e481bdf913d50a Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 12 Mar 2024 15:27:55 +0800 Subject: [PATCH] os: remove useless error check Signed-off-by: guoguangwu --- src/os/os_windows_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index 956ab07f51b..87fdc1123ed 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -81,9 +81,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)