mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Only get path if not returning
This commit is contained in:
@@ -29,11 +29,11 @@ class FileView extends View
|
||||
@updateStatus()
|
||||
|
||||
updateStatus: ->
|
||||
path = @getPath()
|
||||
@removeClass('ignored modified new')
|
||||
repo = @project.repo
|
||||
return unless repo?
|
||||
|
||||
path = @getPath()
|
||||
if repo.isPathIgnored(path)
|
||||
@addClass('ignored')
|
||||
else if repo.isPathModified(path)
|
||||
|
||||
Reference in New Issue
Block a user