Skip to content

Conversation

@sashaodessa
Copy link

What kind of change does this PR introduce?
Refactoring — code structure improvement

What is the current behavior?
The getGroupIds function calls spinner.stop() in multiple places (lines 25, 32, and 34 in the original code), creating code duplication across different execution paths.

What is the new behavior?
The spinner cleanup is now centralized in a finally block, ensuring it stops exactly once regardless of the execution path (success, error, or early return). This eliminates duplication and reduces the risk of forgetting to stop the spinner in future code changes.

Does this PR introduce a breaking change?
No. The behavior is identical — the spinner stops at the same point in execution, and error messages are displayed in the same order.

Related Issue(s)

N/A — code quality improvement

@sashaodessa sashaodessa requested a review from a team as a code owner January 26, 2026 16:21
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.

1 participant