-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: add None for empty return statements in server.py (#386)
## Summary Simply added `None` to empty return to maintain consistency with other methods/functions that return None. Example: 1. https://github.com/astral-sh/ruff-lsp/blob/bae2b2488b09ae3dc1b411ce845db780738827ee/ruff_lsp/server.py#L622 2. https://github.com/astral-sh/ruff-lsp/blob/bae2b2488b09ae3dc1b411ce845db780738827ee/ruff_lsp/server.py#L733 3. … Also aligned with [PEP 8 recommendations](https://peps.python.org/pep-0008/#programming-recommendations) "Be consistent in return statements …". ## Test Plan N/A because both `return` and `return None` return None in the same way.
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters