Skip to content

Commit

Permalink
Merge pull request ipfs/go-ipfs-files#35 from ipfs/fix-staticcheck
Browse files Browse the repository at this point in the history
fix staticcheck

This commit was moved from ipfs/go-ipfs-files@23c2904
  • Loading branch information
marten-seemann authored Jun 2, 2021
2 parents aae0024 + bf03bd6 commit 1c18dbc
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 1c18dbc

Please sign in to comment.