Skip to content

fix: Avoid else after return in mappings bzl#923

Merged
aiuto merged 1 commit intobazelbuild:mainfrom
hofbi:no-else-after-return-mappings
Jan 21, 2025
Merged

fix: Avoid else after return in mappings bzl#923
aiuto merged 1 commit intobazelbuild:mainfrom
hofbi:no-else-after-return-mappings

Conversation

@hofbi
Copy link
Copy Markdown
Contributor

@hofbi hofbi commented Jan 20, 2025

Many linters suggest not to use else-after-return. This is a drive by fix for the mapping module + a few whitespace fixes. I will make a follow up PR to streamline the whitespaces in general and avoid too many unrelated autofixes by saving in an IDE.

Copy link
Copy Markdown
Collaborator

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

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

LGTM. I will not merge it yet so that @aiuto can review.

Copy link
Copy Markdown
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup.

@aiuto aiuto merged commit ddaa101 into bazelbuild:main Jan 21, 2025
@hofbi hofbi deleted the no-else-after-return-mappings branch January 21, 2025 14:32
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