From a6fbdb682bdf92e8bc1cfe80365dbc609b00ecdc Mon Sep 17 00:00:00 2001 From: Edvin Hultberg Date: Wed, 17 Aug 2016 13:00:16 +0200 Subject: [PATCH] :ambulance: fix dingjie/atom-sync#46 --- lib/atom-sync.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/atom-sync.coffee b/lib/atom-sync.coffee index 673ca47..8b95b15 100644 --- a/lib/atom-sync.coffee +++ b/lib/atom-sync.coffee @@ -58,7 +58,7 @@ module.exports = AtomSync = atom.workspace.getActivePaneItem().buffer.file.path getProjectPath: (f) -> - _.find atom.project.getPaths(), (x) -> (f.indexOf x) isnt -1 + atom.project.getPaths()?.find (x) -> (f.indexOf x) isnt -1 deactivate: -> @controller.destory()