Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Minor spelling fixes & refactoring #1207

Closed
wants to merge 2 commits into from
Closed

Minor spelling fixes & refactoring #1207

wants to merge 2 commits into from

Conversation

iKevinY
Copy link

@iKevinY iKevinY commented Dec 16, 2014

I felt like some of the boolean logic in link.py was a little cluttered so I tried to reorganize it a bit; also, I caught a couple of minor spelling errors in the process.

@@ -1236,8 +1235,7 @@ def add_props(cls, user, wrapped):
item.subreddit.contest_mode_upvotes_only and
not item.score_hidden):
item.score = item._ups
item.voting_score = [
item.score - 1, item.score, item.score + 1]
item.voting_score = [(item.score + x - 1) for x in range(3)]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was made to match the way voting_score is defined in builder.py and subreddit.py.

- Reorganized boolean logic
- Changed item.voting_score definition to match the way it is defined
in other parts of the codebase
@iKevinY
Copy link
Author

iKevinY commented Feb 17, 2015

Resolved merge conflict and rebased on top of master.

@bsimpson63
Copy link
Contributor

Thanks for the pull request, but we're not going to accept this. We tend not to accept cosmetic-only changes and prefer to do cleanup like this when we need to modify the nearby code.

Sorry!

@bsimpson63 bsimpson63 closed this Jul 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants