mirror of
https://github.com/golang/go
synced 2024-11-23 08:30:05 -07:00
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>
This commit is contained in:
parent
38ae922b9b
commit
58d40d156e
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user