-
Notifications
You must be signed in to change notification settings - Fork 209
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
Update Module.js #1091
Update Module.js #1091
Conversation
Added var keyword on lines 41. 45 and 49 as requested in #1084
Codecov Report
@@ Coverage Diff @@
## main #1091 +/- ##
=======================================
Coverage 56.48% 56.48%
=======================================
Files 110 110
Lines 2268 2268
Branches 357 357
=======================================
Hits 1281 1281
Misses 987 987
|
@tudoranghelina91 this is all really great, but I am afraid someone else had claimed it before. |
Thank you for your reply |
@@ -38,15 +38,15 @@ module.exports = function ColorTemperature(options, UI) { | |||
for (let i = 0; i < pixels.shape[0]; i++) { | |||
for (let j = 0; j < pixels.shape[1]; j++) { | |||
|
|||
r_data = pixels.get(i, j, 0); | |||
var r_data = pixels.get(i, j, 0); |
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.
the is a comma at the end so that the var can be shared with the other variable
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.
Hello, @aashna27 , could you please elaborate?
Not required anymore |
Added var keyword on lines 41. 45 and 49 as requested in #1084
Fixes #0000 (<=== Replace
0000
with the Issue Number)Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/is-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!