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

Add non-breaking spaces after 'return' #4127

Merged
merged 1 commit into from
May 20, 2022
Merged

Add non-breaking spaces after 'return' #4127

merged 1 commit into from
May 20, 2022

Conversation

BoD
Copy link
Contributor

@BoD BoD commented May 20, 2022

With fields with long names, the generated code could look like this:

 return
      FieldWithAVeryLongName().apply(block).build()
}

instead of:

 return FieldWithAVeryLongName().apply(block).build()
}

which made the compiler choke.

Also added the character in all return places just in case!

Thank you @StylianosGakis for reporting this!

@netlify
Copy link

netlify bot commented May 20, 2022

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit daf3eb6
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/628786056430440008df3bd8

@StylianosGakis
Copy link
Contributor

Amazing 🥳🥳🥳

@BoD BoD merged commit b36194b into main May 20, 2022
@BoD BoD deleted the fix-non-breaking-spaces branch May 20, 2022 14:46
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.

3 participants