mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
🎨 Use prettier emptiness check
This commit is contained in:
@@ -132,7 +132,7 @@ class TextEditor extends Model
|
||||
subscribeToBuffer: ->
|
||||
@buffer.retain()
|
||||
@subscribe @buffer.onDidChangePath =>
|
||||
unless atom.project.getPaths()[0]?
|
||||
unless atom.project.getPaths().length > 0
|
||||
atom.project.setPaths([path.dirname(@getPath())])
|
||||
@emit "title-changed"
|
||||
@emitter.emit 'did-change-title', @getTitle()
|
||||
|
||||
Reference in New Issue
Block a user