Return empty string unless configDirPath is passed

This commit is contained in:
Antonio Scandurra
2015-10-14 18:25:25 +02:00
parent 6a53034a12
commit f2a32eb1dc

View File

@@ -20,6 +20,8 @@ KeymapManager::loadBundledKeymaps = ->
@emitter.emit 'did-load-bundled-keymaps'
KeymapManager::getUserKeymapPath = ->
return "" unless @configDirPath?
if userKeymapPath = CSON.resolve(path.join(@configDirPath, 'keymap'))
userKeymapPath
else