Skip to content
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

core: Move canceled.Is to core.IsCanceled #7831

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Conversation

beautifulentropy
Copy link
Member

@beautifulentropy beautifulentropy commented Nov 19, 2024

Small refactor to use errors.Is() rather than the equality operator. Also moves this utility function into core.

@beautifulentropy beautifulentropy marked this pull request as ready for review November 19, 2024 21:51
@beautifulentropy beautifulentropy requested a review from a team as a code owner November 19, 2024 21:51
aarongable
aarongable previously approved these changes Nov 19, 2024
jprenken
jprenken previously approved these changes Nov 20, 2024
.typos.toml Outdated Show resolved Hide resolved
core/util.go Show resolved Hide resolved
@jsha
Copy link
Contributor

jsha commented Nov 20, 2024

Also, since I forgot to put it in the review text: switching to errors.Is instead of == is great! It's only the move to core I'm asking about.

@beautifulentropy beautifulentropy merged commit c263258 into main Nov 20, 2024
12 checks passed
@beautifulentropy beautifulentropy deleted the core-is-canceled branch November 20, 2024 18:10
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.

4 participants