From f175086865d91edc3e5deca7af8bacf43511ed38 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 25 Jul 2014 15:56:09 -0700 Subject: [PATCH] Always return boolean from Package::isCompatible --- src/package.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/package.coffee b/src/package.coffee index 4f90132f6..195eebcbd 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -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