Skip to content

minor suggestions for changes while i was reading the code #457

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ellyxir
Copy link
Contributor

@ellyxir ellyxir commented Feb 25, 2025

please review, not sure if this is useful or not

@ellyxir ellyxir requested a review from Gozala February 25, 2025 21:05
@ellyxir ellyxir self-assigned this Feb 25, 2025
},
close: async () => {
await this.close();
this.close();
Copy link
Contributor

Choose a reason for hiding this comment

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

This would swallow the error while prior version will propagate it.

Copy link
Contributor

@anotherjesse anotherjesse Feb 28, 2025

Choose a reason for hiding this comment

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

you could do

    abort: () => this.close(),
    close: () => this.close(),

Copy link
Contributor

Choose a reason for hiding this comment

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

assuming whatever is calling this is doing an await

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.

3 participants