AtomLinter / linter-codeclimate

An Atom Linter plugin for the Code Climate CLI
http://github.com/codeclimate/codeclimate
MIT License
10 stars 5 forks source link

Prevent caching an undefined TextEditor path #88

Closed Arcanemagus closed 6 years ago

Arcanemagus commented 6 years ago

Don't cache TextEditor's that don't have a path yet. Although the event subscription would save them later, there is a possibility that the same TextEditor would have multiple event subscriptions in this case. Since they would be cached anyway on a lint() call once they have a path, there is no need to keep them while undefined.

Fixes #55.