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

avoid using 'return' #840

Merged
merged 1 commit into from
May 19, 2024
Merged

avoid using 'return' #840

merged 1 commit into from
May 19, 2024

Conversation

pjfanning
Copy link
Contributor

The current code has this compiler warning:

[warn] -- Warning: /code/avro4s/avro4s-core/src/main/scala/com/sksamuel/avro4s/avroutils/SchemaHelper.scala:42:8 
[warn] 42 |        return types.asScala.find(_.getType == Schema.Type.ARRAY).getOrElse {
[warn]    |        ^
[warn]    |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead

@sksamuel sksamuel merged commit 62e87b8 into sksamuel:master May 19, 2024
1 check 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