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

Validate parts #117

Open
GretaCB opened this issue Jan 3, 2018 · 0 comments
Open

Validate parts #117

GretaCB opened this issue Jan 3, 2018 · 0 comments

Comments

@GretaCB
Copy link

GretaCB commented Jan 3, 2018

Per #56, and since zero-indexing can be a bit of a mindbend (for myself included), would be good to add a check ensuring that --part never equals or exceeds --parts.

Something like

if (part >= parts) {
  return callback("woops");
}

cc @mapsam @millzpaugh

@GretaCB GretaCB changed the title Validate make parts Validate parts Jan 3, 2018
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

No branches or pull requests

1 participant