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

handle when a project is not git repository #239

Merged
merged 1 commit into from Nov 24, 2020

Conversation

aviatesk
Copy link
Contributor

when a project is not a git repository, atom.project.repositoryForDirectory will return null

Copy link
Member

@UziTech UziTech left a comment

Choose a reason for hiding this comment

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

Thanks for finding this. 💯

Could you instead filter out nulls where this._repositories is assigned in https://github.com/atom-community/autocomplete-paths/blob/master/lib/paths-cache.js#L90? That will make it slightly faster.

@aviatesk
Copy link
Contributor Author

done

@UziTech UziTech merged commit b36d41b into atom-community:master Nov 24, 2020
@aviatesk aviatesk deleted the fixnonrepo branch November 25, 2020 02:06
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