mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Remove unnecessary _this variables
This commit is contained in:
parent
39278f5b56
commit
4c191d4d4c
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user