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

add length checks to Vouch #176

Closed
wants to merge 1 commit into from
Closed

add length checks to Vouch #176

wants to merge 1 commit into from

Conversation

mmou
Copy link
Contributor

@mmou mmou commented Apr 8, 2020

No description provided.

@mmou mmou requested a review from heronhaye April 8, 2020 18:55
if err?
cb err

for text in obj.vouch_text
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of this probably add to the string schema so you can do schema.string_with_max_length(700)) above and get it for free

that being said, this cb stuff is just continuation-passing so you have to return whenever you do a cb unless its at the end of the function, so you can fix this code with s/cb/return cb

@mmou
Copy link
Contributor Author

mmou commented Apr 8, 2020

closing this; superseded by #178

@mmou mmou closed this Apr 8, 2020
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

2 participants