fix(specs): Add check when patching Google Inbox keymaps from 07d218d

- This was preventing the specs from running
This commit is contained in:
Juan Tejada 2016-03-24 12:04:10 -07:00
parent 3cdd831e22
commit 3086806446

View file

@ -32,7 +32,7 @@ class KeymapManager extends AtomKeymap
templateKeymapPath = null
reloadTemplateKeymap = =>
@removeBindingsFromSource(templateKeymapPath) if templateKeymapPath
templateFile = NylasEnv.config.get(templateConfigKey).replace("GoogleInbox", "Inbox by Gmail")
templateFile = NylasEnv.config.get(templateConfigKey)?.replace("GoogleInbox", "Inbox by Gmail")
if templateFile
templateKeymapPath = fs.resolve(path.join(@resourcePath, 'keymaps', 'templates'), templateFile, ['cson', 'json'])
if fs.existsSync(templateKeymapPath)