Skip to content

Commit

Permalink
os: remove unnecessary return after t.Fatal
Browse files Browse the repository at this point in the history
Change-Id: Ibddf36431abb799d8f9288d6e17159ce1538d62e
Reviewed-on: https://go-review.googlesource.com/c/go/+/495879
Reviewed-by: Ian Lance Taylor <[email protected]>
Run-TryBot: Robert Griesemer <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
Auto-Submit: Robert Griesemer <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
alexandear authored and gopherbot committed May 19, 2023
1 parent 38ae922 commit 58d40d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/os/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -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
}
}

Expand Down
1 change: 0 additions & 1 deletion src/os/os_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 58d40d1

Please sign in to comment.