Skip to content

Commit 4736789

Browse files
committed
Fix lint
1 parent b046b6b commit 4736789

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

internal/blocks/blocks.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ func (r *blockResult) JSON() any {
7373
txData := make(map[string]any)
7474
txData["id"] = tx.ID().String()
7575
txData["status"] = r.results[i].Status.String()
76-
76+
7777
// System transactions have empty collection ID
7878
if r.results[i].CollectionID == flow.EmptyID {
7979
txData["type"] = "system"
8080
} else {
8181
txData["type"] = "user"
8282
txData["collectionId"] = r.results[i].CollectionID.String()
8383
}
84-
84+
8585
txs = append(txs, txData)
8686
}
8787
result["transactions"] = txs
@@ -123,10 +123,10 @@ func (r *blockResult) String() string {
123123
// Show transactions if included
124124
if command.ContainsFlag(r.included, "transactions") && len(r.transactions) > 0 {
125125
_, _ = fmt.Fprintf(writer, "\nTransactions:\n")
126-
126+
127127
userCount := 0
128128
systemCount := 0
129-
129+
130130
for i, tx := range r.transactions {
131131
var txType string
132132
if r.results[i].CollectionID == flow.EmptyID {
@@ -136,16 +136,16 @@ func (r *blockResult) String() string {
136136
txType = "user"
137137
userCount++
138138
}
139-
140-
_, _ = fmt.Fprintf(writer, " [%d] %s\t%s (%s)\n",
141-
i,
142-
tx.ID().String(),
139+
140+
_, _ = fmt.Fprintf(writer, " [%d] %s\t%s (%s)\n",
141+
i,
142+
tx.ID().String(),
143143
r.results[i].Status.String(),
144144
txType,
145145
)
146146
}
147-
148-
_, _ = fmt.Fprintf(writer, "\nTotal: %d transactions (%d user, %d system)\n",
147+
148+
_, _ = fmt.Fprintf(writer, "\nTotal: %d transactions (%d user, %d system)\n",
149149
len(r.transactions), userCount, systemCount)
150150
}
151151

0 commit comments

Comments
 (0)