mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Always return boolean from Package::isCompatible
This commit is contained in:
@@ -386,12 +386,10 @@ class Package
|
||||
isCompatible: ->
|
||||
return @compatible if @compatible?
|
||||
|
||||
# Bundled packages are always considered compatible
|
||||
if @path.indexOf(path.join(atom.packages.resourcePath, 'node_modules') + path.sep) is 0
|
||||
# Bundled packages are always considered compatible
|
||||
@compatible = true
|
||||
return
|
||||
|
||||
if packageMain = @getMainModulePath()
|
||||
else if packageMain = @getMainModulePath()
|
||||
@incompatibleModules = @getIncompatibleNativeModules()
|
||||
@compatible = @incompatibleModules.length is 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user