Merge pull request #41 from libp2p/fix-staticcheck

fix staticcheck
This commit is contained in:
Steven Allen 2021-04-22 21:12:54 -07:00 committed by GitHub
commit fd9610c46b
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ func TestPSKFragmentation(t *testing.T) {
}()
for i := 0; i < 10; i++ {
_, err = psk2.Read(out)
if _, err := psk2.Read(out); err != nil {
t.Fatal(err)
}
if !bytes.Equal(in[:100], out) {
t.Fatalf("input and output are not the same")
}