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

refactor(auth): compare error with errors.Is #86

Merged
merged 1 commit into from
Apr 8, 2023
Merged

refactor(auth): compare error with errors.Is #86

merged 1 commit into from
Apr 8, 2023

Conversation

Juneezee
Copy link
Contributor

@Juneezee Juneezee commented Apr 8, 2023

Starting from Go 1.13, errors.Is is the preferable way to compare error equality.

@codecov
Copy link

codecov bot commented Apr 8, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (a9a615a) 51.50% compared to head (5f42df9) 51.50%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #86   +/-   ##
=======================================
  Coverage   51.50%   51.50%           
=======================================
  Files         103      103           
  Lines        7026     7026           
=======================================
  Hits         3619     3619           
  Misses       3126     3126           
  Partials      281      281           
Impacted Files Coverage Δ
auth/auth.go 84.02% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

Starting from Go 1.13, `errors.Is` is the preferable way to compare
error equality [1].

[1]: https://go.dev/blog/go1.13-errors

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
@hwbrzzl hwbrzzl enabled auto-merge (squash) April 8, 2023 14:51
@hwbrzzl hwbrzzl merged commit f828274 into goravel:master Apr 8, 2023
@hwbrzzl
Copy link
Contributor

hwbrzzl commented Dec 18, 2024

Hey @Juneezee We created a private channel in Discord for contributors. You can click the link and DM me (@bowen) to join it if you are interested.

Here you can:

  1. Send PR link or review others' PRs;
  2. Discuss new features before creating an issue;
  3. Vote for something;
  4. etc.

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.

2 participants