Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Update Module.js #1091

wants to merge 1 commit into from

Conversation

tudoranghelina91
Copy link

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!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm test
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If 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!

Added var keyword on lines 41. 45 and 49 as requested in #1084
@codecov
Copy link

codecov bot commented May 28, 2019

Codecov Report

Merging #1091 into main will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1091   +/-   ##
=======================================
  Coverage   56.48%   56.48%           
=======================================
  Files         110      110           
  Lines        2268     2268           
  Branches      357      357           
=======================================
  Hits         1281     1281           
  Misses        987      987
Impacted Files Coverage Δ
src/modules/ColorTemperature/Module.js 84.21% <100%> (ø) ⬆️

@aashna27
Copy link

@tudoranghelina91 this is all really great, but I am afraid someone else had claimed it before.

@tudoranghelina91
Copy link
Author

@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);
Copy link

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

Copy link
Author

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?

@harshkhandeparkar
Copy link
Member

Not required anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants