Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
potterbm-cb committed Oct 18, 2024
1 parent 7511949 commit f17ef34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ GO_MOD_PACKAGES=./types/...
GO_FOLDERS=$(shell echo ${GO_PACKAGES} | sed -e "s/\.\///g" | sed -e "s/\/\.\.\.//g")
GO_MOD_FOLDERS=$(shell echo ${GO_MOD_PACKAGES} | sed -e "s/\.\///g" | sed -e "s/\/\.\.\.//g")
TEST_SCRIPT=go test ${GO_PACKAGES}
LINT_SETTINGS=golint,misspell,gocyclo,gocritic,whitespace,goconst,gocognit,bodyclose,unconvert,lll,unparam
LINT_SETTINGS=misspell,gocyclo,gocritic,whitespace,goconst,gocognit,bodyclose,unconvert,lll,unparam

build:
go build ./...

deps:
go get ./...

Expand Down
2 changes: 1 addition & 1 deletion constructor/worker/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ func TestHTTPRequestWorker(t *testing.T) {

w.Header().Set("Content-Type", test.contentType)
w.WriteHeader(test.statusCode)
fmt.Fprintf(w, test.response)
// fmt.Fprintf(w, test.response)
}))

defer ts.Close()
Expand Down
2 changes: 1 addition & 1 deletion fetcher/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (f *Fetcher) UnsafeBlock(
}

// Exit early if no need to fetch txs
if blockResponse.OtherTransactions == nil || len(blockResponse.OtherTransactions) == 0 {
if len(blockResponse.OtherTransactions) == 0 {
return blockResponse.Block, nil
}

Expand Down

0 comments on commit f17ef34

Please sign in to comment.