-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Early Returns: I added early return statements when access_token is present, reducing unnecessary code execution and improving clarity. Debounce Handling: The debounce logic is now separated into distinct helper methods (isDebounceCleared, resetDebounceIfNeeded, waitForDebounceClearance), which makes the code modular and easier to maintain. Logging: The logging has been centralized and made more consistent, ensuring that all necessary information is logged in a clear format. Sleep Function: The sleep duration has been standardized to 2000ms, aligning with the logic of the original code but simplifying the flow. This refactor improves readability, maintainability, and efficiency while preserving the original logic of the maybeLogin function.
- Loading branch information
Showing
1 changed file
with
59 additions
and
47 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