We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Kotlin allows ternary operators to return.
This code:
func showTenants() { guard let intent = coordinator.tenantsIntent() else { return } navigationManager.show(intent, animation: .push) }
Translates to
fun showTenants() { val intent = coordinator.tenantsIntent() if (intent == null) { return } navigationManager.show(intent, animation = .push) }
But could be
fun showTenants() { val intent = coordinator.tenantsIntent() ?: return navigationManager.show(intent, animation = .push) }
The text was updated successfully, but these errors were encountered:
#21 Optimized guard statements
2cb30dc
Implemented on 2cb30dc
Sorry, something went wrong.
Merge pull request #40 from angelolloqui/feature/issue_21
1c01003
No branches or pull requests
Kotlin allows ternary operators to return.
This code:
Translates to
But could be
The text was updated successfully, but these errors were encountered: