Skip to content

Commit b898df9

Browse files
authored
chore: make golines (#217)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 1897c1f commit b898df9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ clean:
3434
format: mod-tidy
3535
go fmt ./...
3636

37+
golines:
38+
golines -w --ignore-generated --chain-split-dots --max-len=80 --reformat-tags .
39+
3740
swagger:
3841
swag f -g api.go -d internal/api
3942
swag i -g api.go -d internal/api
4043

44+
test: mod-tidy
45+
go test -v -race ./...
46+
4147
# Build docker image
4248
image: build
4349
docker build -t $(BINARY) .

submit/tx.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ func SubmitTx(cfg *Config, txRawBytes []byte) (string, error) {
3737
// Determine transaction type (era)
3838
txType, err := ledger.DetermineTransactionType(txRawBytes)
3939
if err != nil {
40-
return "", fmt.Errorf("could not parse transaction to determine type: %s", err)
40+
return "", fmt.Errorf(
41+
"could not parse transaction to determine type: %s",
42+
err,
43+
)
4144
}
4245
tx, err := ledger.NewTransactionFromCbor(txType, txRawBytes)
4346
if err != nil {

0 commit comments

Comments
 (0)