8000 chore: satisfy gofumpt on master by phpboyscout · Pull Request #597 · disgoorg/disgo · GitHub
[go: up one dir, main page]

Skip to content

chore: satisfy gofumpt on master - #597

Closed
phpboyscout wants to merge 1 commit into
disgoorg:masterfrom
phpboyscout:chore/gofumpt
Closed

phpboyscout wants to merge 1 commit into
disgoorg:masterfrom
phpboyscout:chore/gofumpt

Conversation

@phpboyscout
Copy link
Copy Markdown

golangci-lint run currently fails on master, so every pull request opened against it inherits a red check that has nothing to do with the change.

golangci-lint 2.13.1 bundles a gofumpt that removes redundant parentheses around a conversion's type — (T)(x) becomes T(x). Four linted files carry the older form:

  • discord/access_token.go
  • discord/activity.go
  • gateway/gateway_events.go
  • voice/udp_conn.go

Formatting only — no behaviour, no exported surface, no test changes. go build ./... and go test ./... unchanged.

_examples is left alone: the lint configuration excludes it, and including it would make the diff several times larger than the thing it fixes.

Noticed while #596's check went red. That PR touches voice/udp_conn.go, so whichever of the two merges second will need a trivial rebase — happy to sequence them whichever way suits you, or to fold this into #596 if you would rather not carry a separate formatting commit.

golangci-lint 2.13.1 bundles a gofumpt that removes redundant parentheses
around a conversion's type — (T)(x) becomes T(x). Four linted files carry the
older form, so `golangci-lint run` fails on master and therefore on every pull
request opened against it.

Formatting only. No behaviour, no exported surface, no test changes.

_examples is left alone; the lint configuration excludes it, and touching it
would make this diff larger than the thing it fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants

0