Skip to content

Commit d46f660

Browse files
Merge pull request #31 from ipfs/fix-staticcheck
fix staticcheck
2 parents 74e39ea + 410247d commit d46f660

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

inline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ func (p InlineBuilder) Sum(data []byte) (cid.Cid, error) {
2222
if len(data) > p.Limit {
2323
return p.Builder.Sum(data)
2424
}
25-
return cid.V1Builder{Codec: p.GetCodec(), MhType: mhash.ID}.Sum(data)
25+
return cid.V1Builder{Codec: p.GetCodec(), MhType: mhash.IDENTITY}.Sum(data)
2626
}

inline_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestInlineBuilderSmallValue(t *testing.T) {
1414
if err != nil {
1515
t.Fatal(err)
1616
}
17-
if c.Prefix().MhType != mhash.ID {
17+
if c.Prefix().MhType != mhash.IDENTITY {
1818
t.Fatal("Inliner builder failed to use ID Multihash on small values")
1919
}
2020
}
@@ -27,7 +27,7 @@ func TestInlinerBuilderLargeValue(t *testing.T) {
2727
if err != nil {
2828
t.Fatal(err)
2929
}
30-
if c.Prefix().MhType == mhash.ID {
30+
if c.Prefix().MhType == mhash.IDENTITY {
3131
t.Fatal("Inliner builder used ID Multihash on large values")
3232
}
3333
}

0 commit comments

Comments
 (0)