aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2023-05-18 10:53:28 +0300
committerGopher Robot <gobot@golang.org>2023-05-19 00:41:52 +0000
commit58d40d156e98d415236e51cbc9694a2bb1746e86 (patch)
tree41eef6b003cddafeb2790f5b1d67ade0dfe9c717 /src
parent38ae922b9baca192bd750d0bc9089a9aecea7082 (diff)
downloadgo-58d40d156e98d415236e51cbc9694a2bb1746e86.tar.xz
os: remove unnecessary return after t.Fatal
Change-Id: Ibddf36431abb799d8f9288d6e17159ce1538d62e Reviewed-on: https://go-review.googlesource.com/c/go/+/495879 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/os/error_test.go4
-rw-r--r--src/os/os_test.go1
2 files changed, 0 insertions, 5 deletions
diff --git a/src/os/error_test.go b/src/os/error_test.go
index 4fa6146194..8f82ae65d3 100644
--- a/src/os/error_test.go
+++ b/src/os/error_test.go
@@ -27,11 +27,9 @@ func TestErrIsExist(t *testing.T) {
if err == nil {
f2.Close()
t.Fatal("Open should have failed")
- return
}
if s := checkErrorPredicate("os.IsExist", os.IsExist, err, fs.ErrExist); s != "" {
t.Fatal(s)
- return
}
}
@@ -68,13 +66,11 @@ func TestErrIsNotExist(t *testing.T) {
name := filepath.Join(tmpDir, "NotExists")
if s := testErrNotExist(t, name); s != "" {
t.Fatal(s)
- return
}
name = filepath.Join(name, "NotExists2")
if s := testErrNotExist(t, name); s != "" {
t.Fatal(s)
- return
}
}
diff --git a/src/os/os_test.go b/src/os/os_test.go
index 09d923a338..0a6be3516a 100644
--- a/src/os/os_test.go
+++ b/src/os/os_test.go
@@ -2864,7 +2864,6 @@ func TestDirSeek(t *testing.T) {
dirnames2, err := f.Readdirnames(0)
if err != nil {
t.Fatal(err)
- return
}
if len(dirnames1) != len(dirnames2) {