Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
fix staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jun 2, 2021
1 parent df4b35a commit 5dc5da5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions multifilereader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ func TestMultiFileReaderToMultiFile(t *testing.T) {
t.Fatal(err)
}

md, ok := mf.(Directory)
if !ok {
t.Fatal("Expected a directory")
}
it := md.Entries()
it := mf.Entries()

if !it.Next() || it.Name() != "beep.txt" {
t.Fatal("iterator didn't work as expected")
Expand Down Expand Up @@ -80,11 +76,7 @@ func TestMultiFileReaderToMultiFileSkip(t *testing.T) {
t.Fatal(err)
}

md, ok := mf.(Directory)
if !ok {
t.Fatal("Expected a directory")
}
it := md.Entries()
it := mf.Entries()

if !it.Next() || it.Name() != "beep.txt" {
t.Fatal("iterator didn't work as expected")
Expand Down

0 comments on commit 5dc5da5

Please sign in to comment.