From 4c191d4d4ca11c1d2dfcaee25d22cd35c62a71cc Mon Sep 17 00:00:00 2001 From: Antti Ahti Date: Sun, 18 Oct 2015 12:15:55 +0300 Subject: [PATCH] Remove unnecessary _this variables --- lib/utils/cli.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/utils/cli.js b/lib/utils/cli.js index 6b9e2c98a..e32c3d4dc 100644 --- a/lib/utils/cli.js +++ b/lib/utils/cli.js @@ -129,26 +129,23 @@ let Select = { // Render Select._render = function() { - - let _this = this; - // Clear Rendering - _this._clear(); + this._clear(); // Reset line count - _this.state.lines = 1; + this.state.lines = 1; // Render Line - for (let i = 0; i < _this.state.choices.length; i++) { + for (let i = 0; i < this.state.choices.length; i++) { - let choice = _this.state.choices[i], + let choice = this.state.choices[i], line = ''; // Increment line count - _this.state.lines++; + this.state.lines++; // Select Arrow - let arrow = i === (_this.state.index - 1) ? ' > ' : ' '; + let arrow = i === (this.state.index - 1) ? ' > ' : ' '; // Render Choice if (choice.label) {