Skip to content

Commit

Permalink
fix staticcheck
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-ipfs-files@5dc5da5
  • Loading branch information
marten-seemann committed Jun 2, 2021
1 parent aae0024 commit bf03bd6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions files/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 bf03bd6

Please sign in to comment.