Skip to content

Commit 3f16d60

Browse files
authored
chore: make format golines (#999)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 34fe34a commit 3f16d60

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

ledger/byron/byron.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,9 @@ func NewByronTransactionFromCbor(data []byte) (*ByronTransaction, error) {
772772
return &byronTx, nil
773773
}
774774

775-
func NewByronTransactionOutputFromCbor(data []byte) (*ByronTransactionOutput, error) {
775+
func NewByronTransactionOutputFromCbor(
776+
data []byte,
777+
) (*ByronTransactionOutput, error) {
776778
var byronTxOutput ByronTransactionOutput
777779
if _, err := cbor.Decode(data, &byronTxOutput); err != nil {
778780
return nil, fmt.Errorf("decode Byron transaction output error: %w", err)

ledger/tx_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ func TestDetermineTransactionType(t *testing.T) {
4545
}
4646
tmpTxType, err := ledger.DetermineTransactionType(txCbor)
4747
if err != nil {
48-
t.Fatalf("DetermineTransactionType failed with an unexpected error: %s", err)
48+
t.Fatalf(
49+
"DetermineTransactionType failed with an unexpected error: %s",
50+
err,
51+
)
4952
}
5053
if tmpTxType != testDef.expectedTxType {
5154
t.Fatalf(

protocol/chainsync/messages_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ func TestMsgRollForwardNodeToNode_CorruptedCBOR(t *testing.T) {
206206
)
207207

208208
if err == nil {
209-
t.Fatalf("expected error from NewMsgRollForwardNtN with corrupted CBOR, got nil")
209+
t.Fatalf(
210+
"expected error from NewMsgRollForwardNtN with corrupted CBOR, got nil",
211+
)
210212
}
211213
}
212214
func TestMsgRollForwardNodeToClient(t *testing.T) {

protocol/chainsync/wrappers.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ func NewWrappedHeader(
6868
// Parse block and extract header
6969
tmp := []cbor.RawMessage{}
7070
if _, err := cbor.Decode(blockCbor, &tmp); err != nil {
71-
return nil, fmt.Errorf("CBOR decode failed in NewWrappedHeader: %w", err)
71+
return nil, fmt.Errorf(
72+
"CBOR decode failed in NewWrappedHeader: %w",
73+
err,
74+
)
7275
}
7376
if len(tmp) == 0 {
7477
return nil, errors.New("decoded CBOR header is empty")

0 commit comments

Comments
 (0)