fix(autoload-images): Check to see if whitelist exists

This commit is contained in:
Ben Gotow 2015-11-09 12:13:46 -08:00
parent d057e5f67b
commit 369c5049a7

View file

@ -30,6 +30,8 @@ class AutoloadImagesStore extends NylasStore
true
_loadWhitelist: =>
fs.exists @_whitelistEmailsPath, (exists) =>
return unless exists
fs.readFile @_whitelistEmailsPath, (err, body) =>
return console.log(err) if err or not body
@_whitelistEmails = {}