Only get path if not returning

This commit is contained in:
Kevin Sawicki
2013-01-04 15:49:57 -08:00
parent 5ce606953b
commit dec3ab7873

View File

@@ -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)