Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit c28f3da

Browse files
author
Jon Duckworth
committed
Clean up shadowed variables
1 parent 55dcbe9 commit c28f3da

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/setup/install.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ var avn = function() {
8787
* complete and indicates if any action took place.
8888
*/
8989
var plugins = function() {
90-
return installedPlugins().then(function(plugins) {
91-
return Promise.all(plugins.map(function(plugin) {
90+
return installedPlugins().then(function(_plugins) {
91+
return Promise.all(_plugins.map(function(plugin) {
9292
var src = plugin.path + '/';
9393
var dst = path.join(process.env.HOME,
9494
path.join('.avn/plugins', plugin.moduleName));

lib/setup/plugins.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ var path = require('path');
1515
var modules = function() {
1616
return Promise.resolve()
1717
.then(function() { return npm.loadAsync(); })
18-
.then(function(npm) {
19-
npm.config.set('spin', false);
20-
npm.config.set('global', true);
21-
npm.config.set('depth', 0);
22-
return Promise.promisify(npm.commands.list)([], true);
18+
.then(function(_npm) {
19+
_npm.config.set('spin', false);
20+
_npm.config.set('global', true);
21+
_npm.config.set('depth', 0);
22+
return Promise.promisify(_npm.commands.list)([], true);
2323
})
2424
.then(function(data) { return data; });
2525
};

lib/setup/profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ var isNoEntry = require('../util/codes').isNoEntry;
1616
* @return {String} The string to be included in the init script.
1717
*/
1818
var script = function() {
19-
var script = '$HOME/.avn/bin/avn.sh';
19+
var _script = '$HOME/.avn/bin/avn.sh';
2020
return util.format('[[ -s "%s" ]] && source "%s" # load avn\n',
21-
script, script);
21+
_script, _script);
2222
};
2323

2424
/**

0 commit comments

Comments
 (0)