Skip to content

Commit

Permalink
chore: make golines (#217)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Jun 7, 2024
1 parent 1897c1f commit b898df9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ clean:
format: mod-tidy
go fmt ./...

golines:
golines -w --ignore-generated --chain-split-dots --max-len=80 --reformat-tags .

swagger:
swag f -g api.go -d internal/api
swag i -g api.go -d internal/api

test: mod-tidy
go test -v -race ./...

# Build docker image
image: build
docker build -t $(BINARY) .
5 changes: 4 additions & 1 deletion submit/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ func SubmitTx(cfg *Config, txRawBytes []byte) (string, error) {
// Determine transaction type (era)
txType, err := ledger.DetermineTransactionType(txRawBytes)
if err != nil {
return "", fmt.Errorf("could not parse transaction to determine type: %s", err)
return "", fmt.Errorf(
"could not parse transaction to determine type: %s",
err,
)
}
tx, err := ledger.NewTransactionFromCbor(txType, txRawBytes)
if err != nil {
Expand Down

0 comments on commit b898df9

Please sign in to comment.