Skip to content

Simplify async call by removing unused variable #975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged

Conversation

vb2ae
Copy link
Member

@vb2ae vb2ae commented Jun 18, 2025

Removed the assignment of the result from dispatcher.RunAsync to a variable. The discard operator _ is now used to indicate that the result is not needed, streamlining the code.

Removed the assignment of the result from `dispatcher.RunAsync` to a variable. The discard operator `_` is now used to indicate that the result is not needed, streamlining the code.
@vb2ae vb2ae requested a review from Copilot June 18, 2025 12:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR simplifies the asynchronous call by replacing an unused variable assignment with the discard operator, improving code clarity.

  • Removed the unnecessary variable "dummy" from the async method call.
  • Uses the discard operator "_" to explicitly indicate that the return value is intentionally ignored.

@vb2ae vb2ae merged commit ecb8990 into master Jun 18, 2025
4 checks passed
@vb2ae vb2ae deleted the alert-fix-18 branch June 18, 2025 22:30
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