Remove try/catch around package.json requiring

No other requires are ever guarded against and the package.json should
be assumed to be valid JSON.
This commit is contained in:
Kevin Sawicki
2015-04-08 09:29:04 -07:00
parent ca67d33ebe
commit 80787ef1e2
4 changed files with 4 additions and 17 deletions

View File

@@ -11,10 +11,7 @@ Q = require 'q'
ModuleCache = require './module-cache'
ScopedProperties = require './scoped-properties'
try
packagesCache = require('../package.json')?._atomPackages ? {}
catch error
packagesCache = {}
packagesCache = require('../package.json')?._atomPackages ? {}
# Loads and activates a package's main module and resources such as
# stylesheets, keymaps, grammar, editor properties, and menus.