Skip to content

Unused variable assignment and use#6

Open
Tomas2h wants to merge 1 commit into
FixTechDebtfrom
RemoveAssigmentInCamera
Open

Unused variable assignment and use#6
Tomas2h wants to merge 1 commit into
FixTechDebtfrom
RemoveAssigmentInCamera

Conversation

@Tomas2h

@Tomas2h Tomas2h commented Mar 16, 2018

Copy link
Copy Markdown

This PR changes (delete as applicable):

  • Nothing, it's a bug fix (code smell fix)

Describe the changes below:
removed unused assignment and extended condition as 1/0 gives an inverse of infinity

@TCatshoek TCatshoek force-pushed the RemoveAssigmentInCamera branch from 65fb23f to ef72c0d Compare March 16, 2018 21:23
@Tomas2h Tomas2h closed this Mar 16, 2018
@Tomas2h Tomas2h changed the base branch from master to FixTechDebt March 16, 2018 21:29
@Tomas2h Tomas2h reopened this Mar 16, 2018
@TCatshoek

Copy link
Copy Markdown

How certain are we this doesn't break anything?

@gerardva

Copy link
Copy Markdown

I dont think this is properly tested yet, we should do that first before submitting the PR to Phaser

@TCatshoek

Copy link
Copy Markdown

Agreed, lets not include this for now, until we're sure it is ok.

@12casper3

Copy link
Copy Markdown

why would it break anything?
JavaScript creates a new scope for every function, so all these determinant values can not be used outside of the function. And since they are not stored into the input/output objects of the function, they can never be accessed again right?

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.

4 participants