From 892cdae622330a5adfccf266babf4238c7efc2bd Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 21 Oct 2014 13:17:31 -0700 Subject: [PATCH] Return false when resource path does not match resources path --- src/package.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.coffee b/src/package.coffee index 132bef42a..76024a3c3 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -28,7 +28,7 @@ class Package @isBundledPackagePath: (packagePath) -> if atom.packages.devMode - return atom.packages.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}") + return false unless atom.packages.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}") @resourcePathWithTrailingSlash ?= "#{atom.packages.resourcePath}#{path.sep}" packagePath?.startsWith(@resourcePathWithTrailingSlash)