Skip to content

Commit

Permalink
chore: use gofumpt (#82)
Browse files Browse the repository at this point in the history
## Overview

Unify formatting with `celestia-node` and other Celestia projects in the
future.
  • Loading branch information
cristaloleg authored Jun 20, 2024
1 parent e0a5240 commit 288435a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ linters-settings:
misspell:
locale: US
goimports:
local-prefixes: github.com/celestiaorg/celestia-node
local-prefixes: github.com/celestiaorg
dupl:
threshold: 200
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fmt:
@find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs gofmt -w -s
@find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs goimports -w -local github.com/celestiaorg
@go mod tidy -compat=1.17
@gofumpt -w -extra .
@cfmt -w -m=100 ./...
.PHONY: fmt

Expand Down
4 changes: 1 addition & 3 deletions fraudserv/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import (
"github.com/celestiaorg/go-fraud"
)

var (
storePrefix = "fraud"
)
var storePrefix = "fraud"

// put adds a Fraud Proof to the datastore with the given hash as the key.
func put(ctx context.Context, ds datastore.Datastore, hash string, value []byte) error {
Expand Down

0 comments on commit 288435a

Please sign in to comment.