From a080d13f1c1de54b1a1e0bd4c3b6de2ba54542ce Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 26 Aug 2013 10:52:57 -0400 Subject: [PATCH] go fmt --- tx/tx_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tx/tx_test.go b/tx/tx_test.go index 636924e..4dc9fda 100644 --- a/tx/tx_test.go +++ b/tx/tx_test.go @@ -104,7 +104,7 @@ func TestUtxoStoreWriteRead(t *testing.T) { if err != nil { t.Error(err) } - if n != 20 * (1 + int64(utxoByteSize)) { + if n != 20*(1+int64(utxoByteSize)) { t.Error("Incorrect number of bytes written.") } @@ -144,13 +144,13 @@ func TestUtxoStoreWriteRead(t *testing.T) { } truncatedReadBuf := bytes.NewBuffer(storeBytes) - truncatedReadBuf.Truncate(10 * (1 + utxoByteSize) + btcwire.HashSize) + truncatedReadBuf.Truncate(10*(1+utxoByteSize) + btcwire.HashSize) store3 := new(UtxoStore) n, err = store3.ReadFrom(truncatedReadBuf) if err != io.EOF { t.Error("Expected err = io.EOF reading from truncated buffer.") } - if n != 10 * (1 + int64(utxoByteSize)) + btcwire.HashSize { + if n != 10*(1+int64(utxoByteSize))+btcwire.HashSize { t.Error("Incorrect number of bytes read from truncated buffer.") } }