Skip to content

Commit

Permalink
Fix forgotten err assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
horpto authored and jackc committed Jul 31, 2023
1 parent ce6e68c commit bd2934d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timestamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestTimestampNanosecondsTruncated(t *testing.T) {
t.Errorf("%d. EncodeText failed - %v", i, err)
}

ts.DecodeText(nil, buf)
err = ts.DecodeText(nil, buf)
if err != nil {
t.Errorf("%d. DecodeText failed - %v", i, err)
}
Expand All @@ -87,7 +87,7 @@ func TestTimestampNanosecondsTruncated(t *testing.T) {
t.Errorf("%d. EncodeBinary failed - %v", i, err)
}

ts.DecodeBinary(nil, buf)
err = ts.DecodeBinary(nil, buf)
if err != nil {
t.Errorf("%d. DecodeBinary failed - %v", i, err)
}
Expand Down

0 comments on commit bd2934d

Please sign in to comment.