-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(linter): clean up and refactor recursion check logic
This refactor simplifies the logic for checking whether function arguments are only used in recursive calls. It also separates concerns to improve clarity. - 1. Use `let - else` to avoid deep nesting and improve readability - 2. Extract recursive call check logic into `is_recursive_call` helper function - 3. Handle empty iterator cases to ensure they don't incorrectly return `true`
- Loading branch information
Showing
1 changed file
with
49 additions
and
39 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