-
-
Couldn't load subscription status.
- Fork 1k
Change lexical scope tuning #2310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/js/tabs/pid_tuning.js
Outdated
| // Add a name to each row of PIDs if empty | ||
| $('.pid_tuning tr').each(function(){ | ||
| for(i = 0; i < FC.PID_NAMES.length; i++) { | ||
| for (const i in FC.PID_NAMES) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for ( of ) or leave as is.
| } else { | ||
| console.log(`Unsupported API version: ${FC.CONFIG.apiVersion}`); | ||
| } | ||
| return promise; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
src/js/tabs/pid_tuning.js
Outdated
| var rateCurveUpdateRequired = false; | ||
| for(var i=0; i<this.oldRC.length; i++) { // has the value changed ? | ||
| let rateCurveUpdateRequired = false; | ||
| for (let i=0; i<this.oldRC.length; i++) { // has the value changed ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace. 👾
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👾
src/js/tabs/pid_tuning.js
Outdated
|
|
||
| // check that the balloon does not already overlap | ||
| for(var i=0; i<dirty.length; i++) { | ||
| for(const i in dirty) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for ( of ) or leave as is.
src/js/tabs/pid_tuning.js
Outdated
| } | ||
| // then display them on the chart | ||
| for(var i=0; i<balloons.length; i++) balloons[i].balloon(); | ||
| for(const i in balloons) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for ( of ) or leave as is.
|
Fixed as requested per review. Added fixing spaces in several places to be more consistent. |
|
Kudos, SonarCloud Quality Gate passed!
|
No description provided.