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

Scala 3 #554

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Scala 3 #554

merged 1 commit into from
Nov 1, 2023

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Oct 29, 2023

No description provided.

def download = Action.async { implicit request =>
Future.successful(
MovedPermanently(routes.Application.gettingStarted.path)
)
Copy link
Member

Choose a reason for hiding this comment

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

Hmm... instead of using Action.async { ... Future.successful( ... you could have changed the implicit request to be implicit request: Request[AnyContent]

Is there a reason you choose your approach?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no strong reason.

Copy link
Member

Choose a reason for hiding this comment

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

Ok 😉

@mkurz mkurz merged commit ba80a09 into playframework:main Nov 1, 2023
7 checks passed
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