From f47164a2e68dd946c71cab0d981cc4460c14b40f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 12 Jun 2013 15:46:15 -0700 Subject: [PATCH] Use more descriptive variable name instead of path --- src/app/atom.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/atom.coffee b/src/app/atom.coffee index 9d0ec957c..69d559a55 100644 --- a/src/app/atom.coffee +++ b/src/app/atom.coffee @@ -67,9 +67,9 @@ window.atom = if @isPackageDisabled(name) return console.warn("Tried to load disabled package '#{name}'") - if path = @resolvePackagePath(name) + if packagePath = @resolvePackagePath(name) return pack if pack = @getLoadedPackage(name) - pack = Package.load(path, options) + pack = Package.load(packagePath, options) @loadedPackages[pack.name] = pack pack else @@ -87,8 +87,8 @@ window.atom = resolvePackagePath: (name) -> return name if fsUtils.isDirectory(name) - path = fsUtils.resolve(config.packageDirPaths..., name) - return path if fsUtils.isDirectory(path) + packagePath = fsUtils.resolve(config.packageDirPaths..., name) + return packagePath if fsUtils.isDirectory(packagePath) packagePath = fsUtils.join(window.resourcePath, 'node_modules', name) return packagePath if @isInternalPackage(packagePath)