Always return boolean from Package::isCompatible

This commit is contained in:
Kevin Sawicki
2014-07-25 15:56:09 -07:00
parent c6071a9802
commit f175086865

View File

@@ -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