Skip to content

Fix: Initialize direction in VoteType constructor. - #41

Open
esraahisham753 wants to merge 1 commit into
SaiUpadhyayula:masterfrom
esraahisham753:patch-1
Open

Fix: Initialize direction in VoteType constructor.#41
esraahisham753 wants to merge 1 commit into
SaiUpadhyayula:masterfrom
esraahisham753:patch-1

Conversation

@esraahisham753

Copy link
Copy Markdown

The SpringRedditException raised whenever the look up function is called even with -1 or 1 values, because the direction value is defaulted to zero as it's not initialized.

Fix: initialize the direction in constructor.

The SpringRedditException raised whenever the look up function is called even with -1 or 1 values, because the direction value is defaulted to zero as it's not initialized.

Fix: initialize the direction in constructor.
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