Skip to content

Commit

Permalink
path: replace ImmutablePath interface with struct
Browse files Browse the repository at this point in the history
Let's not repeat ipfs/go-block-format#45 interface for struct with one implementation and no value added.


This commit was moved from ipfs/boxo@45c797e
  • Loading branch information
Jorropo authored and hacdias committed Oct 9, 2023
1 parent 9f49349 commit 4a25d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/coreiface/coreiface/tests/unixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func (tp *TestSuite) TestAdd(t *testing.T) {
t.Errorf("Event.Name didn't match, %s != %s", expected[0].Name, event.Name)
}

if expected[0].Path != nil && event.Path != nil {
if (expected[0].Path != path.ImmutablePath{} && event.Path != path.ImmutablePath{}) {
if expected[0].Path.RootCid().String() != event.Path.RootCid().String() {
t.Errorf("Event.Hash didn't match, %s != %s", expected[0].Path, event.Path)
}
Expand Down

0 comments on commit 4a25d55

Please sign in to comment.