mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user