Skip to content

Commit 8b4f98c

Browse files
authored
fix: Unnecessarily complex way of printing formatted string
1 parent f07b441 commit 8b4f98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sum_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ func TestSmallerLengthHashID(t *testing.T) {
144144
for l := (dataLength - 1); l >= 0; l-- {
145145
_, err = multihash.Sum(data, multihash.ID, l)
146146
if err == nil {
147-
t.Fatal(fmt.Sprintf("identity hash of length %d smaller than data length %d didn't fail",
148-
l, dataLength))
147+
t.Fatalf("identity hash of length %d smaller than data length %d didn't fail",
148+
l, dataLength)
149149
}
150150
}
151151
}

0 commit comments

Comments
 (0)