Skip to content

Small refactoring#1

Open
oraby wants to merge 13 commits intoRewardCenterPortfrom
small_refactoring
Open

Small refactoring#1
oraby wants to merge 13 commits intoRewardCenterPortfrom
small_refactoring

Conversation

@oraby
Copy link
Copy Markdown
Collaborator

@oraby oraby commented May 9, 2018

Few general changes to the code before I started introducing our changes.
The last commit is basically few questions that I though it'd be easier to ask on the code itself, I'll remove that last commit later.

Fyi @marionbosc

@oraby oraby force-pushed the small_refactoring branch from 1ee828c to 6ac392b Compare May 9, 2018 01:05
oraby added 13 commits May 9, 2018 03:07
The lower if-conditions were redundant and was performing the same as
the upper if-conditions.
This acts like the ternary operator in other languages. It should hopefully
increase the code readability.
This should increase code readability and help in catching mistyped values.
This should increase the readability and decrease the possibility that a
value would be updated in one place but forgotten to be updated in another.
No use to repeat the statement twice if no need to.
@oraby oraby force-pushed the small_refactoring branch from 6ac392b to 0c2f2de Compare May 9, 2018 01:07
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.

1 participant