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

Removed unused error #8

Merged
merged 2 commits into from Apr 12, 2019
Merged

Removed unused error #8

merged 2 commits into from Apr 12, 2019

Conversation

robcapo
Copy link
Collaborator

@robcapo robcapo commented Apr 12, 2019

No description provided.

@robcapo robcapo requested a review from mingzhi April 12, 2019 19:31
lint/source.go Outdated
@@ -95,7 +93,7 @@ func (s DescriptorSource) findLocationByPath(path []int) (Location, error) {
func (s DescriptorSource) findCommentsByPath(path []int) (Comments, error) {
l := s.m[newLocPath(path...)]
if l == nil {
return Comments{}, ErrCommentsNotFound
return Comments{}, ErrLocationNotFound
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should change ErrLocationNotFound to simply ErrNotFound. Otherwise, it is confused to return location not found error in finding comments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@mingzhi mingzhi left a comment

Choose a reason for hiding this comment

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

Thanks!

@mingzhi mingzhi merged commit e4ccca5 into core-skeleton Apr 12, 2019
@mingzhi mingzhi deleted the remove_unused_error branch April 12, 2019 20:16
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.

None yet

2 participants