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

Improvement for to validate if the input parameter 'raw.v_votes' is a string #47

Closed
wants to merge 2 commits into from

Conversation

jarenal
Copy link
Member

@jarenal jarenal commented Oct 24, 2017

This PR is required for logic/vote runs properly.

This PR will fixes #31

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 55.074% when pulling ccd00de on fix-issue-31 into c117be3 on development.

logic/vote.js Outdated

return {votes: votes};
if(typeof raw.v_votes !== 'string') {
Copy link
Contributor

Choose a reason for hiding this comment

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

please wrap typeof

logic/vote.js Outdated
}

var votes = raw.v_votes.split(',');
return {votes: votes};
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove votes variable and return it directly.

@jarenal
Copy link
Member Author

jarenal commented Oct 25, 2017

Improvements applied!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 55.021% when pulling ae58f8b on fix-issue-31 into c117be3 on development.

@vekexasia vekexasia closed this Mar 4, 2018
@vekexasia vekexasia deleted the fix-issue-31 branch March 4, 2018 09:53
vekexasia added a commit that referenced this pull request Mar 8, 2019
Docker files / compose / build scripts
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.

None yet

3 participants