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

fix: try projectconfig notfounderr #1344

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Conversation

wesbillman
Copy link
Collaborator

No description provided.

@wesbillman wesbillman requested a review from a team as a code owner April 26, 2024 23:02
@wesbillman wesbillman requested review from matt2e and removed request for a team April 26, 2024 23:02
@alecthomas alecthomas mentioned this pull request Apr 26, 2024
@wesbillman wesbillman merged commit 8c853cb into main Apr 26, 2024
12 checks passed
@wesbillman wesbillman deleted the try-project-config-notfounderr branch April 26, 2024 23:07
@@ -36,7 +35,7 @@ func (p ProjectConfigResolver[R]) Get(ctx context.Context, ref Ref) (*url.URL, e
}
key, ok := mapping[ref.Name]
if !ok {
return nil, fmt.Errorf("no such key %q: %w", ref.Name, ErrNotFound)
return nil, ErrNotFound
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a no-op - errors.Is() will search the error tree, so will be true for the previous code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ahh yeah I was unsure :(

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