From 7a7c2041408d4c0719ab8a9657e92f60afaa928a Mon Sep 17 00:00:00 2001 From: Dave Eddy Date: Fri, 4 Sep 2015 13:01:55 -0400 Subject: [PATCH] style fixes --- lib/do_packages.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/do_packages.js b/lib/do_packages.js index 70cb7f2..5e9e0bf 100644 --- a/lib/do_packages.js +++ b/lib/do_packages.js @@ -30,6 +30,7 @@ var columnsDefaultLong = 'id,name,default,memory,swap,disk'; var sortDefault = '_groupPlus,memory'; function do_packages(subcmd, opts, args, callback) { + var i; if (opts.help) { this.do_help('help', {}, [subcmd], callback); return; @@ -44,7 +45,7 @@ function do_packages(subcmd, opts, args, callback) { columns = columns.split(','); var rightAligned = {memory: true, disk: true, swap: true, vcpus: true, lwps: true}; - for (var i = 0; i < columns.length; i++) { + for (i = 0; i < columns.length; i++) { if (rightAligned[columns[i]]) { columns[i] = {lookup: columns[i], align: 'right'}; } @@ -68,7 +69,7 @@ function do_packages(subcmd, opts, args, callback) { if (opts.json) { common.jsonStream(pkgs); } else { - for (var i = 0; i < pkgs.length; i++) { + for (i = 0; i < pkgs.length; i++) { var pkg = pkgs[i]; pkg.shortid = pkg.id.split('-', 1)[0];