Skip to content

all: drop redundant blank lines flagged by the whitespace linter#3696

Open
Deln0r wants to merge 1 commit into
element-hq:mainfrom
Deln0r:lint/whitespace-cleanup
Open

all: drop redundant blank lines flagged by the whitespace linter#3696
Deln0r wants to merge 1 commit into
element-hq:mainfrom
Deln0r:lint/whitespace-cleanup

Conversation

@Deln0r

@Deln0r Deln0r commented May 14, 2026

Copy link
Copy Markdown

Summary

Six instances of stray blank lines either at the start of a block (right after an opening brace) or at the end of one (right before a closing brace), across appservice, federationapi and roomserver. The whitespace linter flags both shapes; gofmt does not touch them, so they had to be removed by hand.

File Shape
appservice/appservice.go:34 leading newline after {
appservice/query/query.go:298 leading newline after {
federationapi/routing/invite.go:318 trailing newline before }
federationapi/routing/join.go:267 trailing newline before }
federationapi/routing/publicrooms.go:55 leading newline after {
roomserver/storage/shared/storage.go:1525 trailing newline before }

No behavior change.

Test plan

  • go build ./... clean
  • CI lint/test on this PR

Six instances of stray blank lines either at the start of a block (right
after an opening brace) or at the end of one (right before a closing
brace) across appservice, federationapi and roomserver. The whitespace
linter flags both shapes; gofmt does not touch them, so they had to be
removed by hand.

No behavior change.

Signed-off-by: Ian Chechin <ian00chechin@gmail.com>
@Deln0r Deln0r requested a review from a team as a code owner May 14, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant