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

No else after return #14103

Merged
merged 1 commit into from
Sep 10, 2022
Merged

No else after return #14103

merged 1 commit into from
Sep 10, 2022

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Sep 10, 2022

This updates the linter config to disallow else after a return. The idea here is to encourage aligning the happy path to the left (and otherwise avoid unnecessary indentation).

Ignore whitespace for easier review.

@github-actions
Copy link

📦 Preview the website for this branch here: https://deploy-preview-14103--ol-site.netlify.app/.

@tschaub tschaub merged commit b7d6f44 into openlayers:main Sep 10, 2022
@tschaub tschaub deleted the no-else-return branch September 10, 2022 20:29
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