Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Avoid updateRoots error
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotdrew committed Feb 15, 2017
1 parent 28ee38b commit 2a381df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nsync/atom-helper.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = helper =

fs.makeTreeSync(path)
atom.project.addPath(path)
@treeView().updateRoots(directoryExpansionStates)
@treeView()?.updateRoots(directoryExpansionStates)
@updateTitle()

resetTitleUpdate: ->
Expand Down

0 comments on commit 2a381df

Please sign in to comment.