Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant params from defn bodies #1408

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mdedetrich
Copy link
Contributor

@mdedetrich mdedetrich commented Jul 21, 2024

I noticed that the codebase has a lot of cases of redundant/useless braces, this scalafmt configuration removes all of these braces.

When this gets merged In a future PR I will add this commit to .git-blame-ignore-revs

mdedetrich pushed a commit to mdedetrich/pekko that referenced this pull request Jul 21, 2024
@mdedetrich mdedetrich force-pushed the remove-redundant-params-from-defn-bodies branch from f6453f8 to 3db058b Compare July 21, 2024 12:23
mdedetrich pushed a commit to mdedetrich/pekko that referenced this pull request Jul 21, 2024
@mdedetrich mdedetrich force-pushed the remove-redundant-params-from-defn-bodies branch from 3db058b to 5eb0aee Compare July 21, 2024 12:31
@mdedetrich
Copy link
Contributor Author

Seems like there is a bug in scalafmt, reported upstream at scalameta/scalafmt#4108

@mdedetrich mdedetrich marked this pull request as draft July 21, 2024 13:09
context.clearCurrentActorThread()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the old one is begtter

mdedetrich pushed a commit to mdedetrich/pekko that referenced this pull request Sep 16, 2024
Signed-off-by: Matthew de Detrich <[email protected]>

# Conflicts:
#	actor-typed-tests/src/test/scala/org/apache/pekko/actor/typed/SupervisionSpec.scala
#	cluster-sharding/src/main/scala/org/apache/pekko/cluster/sharding/ClusterSharding.scala
#	stream/src/main/scala/org/apache/pekko/stream/javadsl/SourceWithContext.scala
@mdedetrich mdedetrich force-pushed the remove-redundant-params-from-defn-bodies branch from 5eb0aee to 68e2102 Compare September 16, 2024 10:48
@mdedetrich mdedetrich force-pushed the remove-redundant-params-from-defn-bodies branch from 68e2102 to c839a2b Compare September 16, 2024 10:55
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.

2 participants