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

Commit

Permalink
Merge pull request #35 from ipfs/fix-staticcheck
Browse files Browse the repository at this point in the history
fix staticcheck
  • Loading branch information
marten-seemann authored Jun 2, 2021
2 parents df4b35a + 5dc5da5 commit 23c2904
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 23c2904

Please sign in to comment.