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

[FIX] "any" rule should have source code #185

Merged
merged 1 commit into from
Aug 24, 2020
Merged

[FIX] "any" rule should have source code #185

merged 1 commit into from
Aug 24, 2020

Conversation

erfanium
Copy link
Collaborator

@erfanium erfanium commented Aug 24, 2020

-> #184
It is better that all the rules have source code (include any). Because it's difficult to handle rules that don't have source code

@erfanium erfanium requested a review from icebob August 24, 2020 12:35
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.579% when pulling 331e21b on erfanium:p2 into 6af3346 on icebob:master.

@erfanium erfanium changed the title [FIX] any rule should have source code [FIX] "any" rule should have source code Aug 24, 2020
sourceCode.push(this.wrapRequiredCheckSourceCode(rule, innerSrc.replace(/%%INDEX%%/g, rule.index), context, resVar));
sourceCode.push(this.makeCustomValidator({vName: resVar, path: customPath, schema: rule.schema, context, messages: rule.messages, ruleIndex: rule.index}));

} else {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now this if/else statement is useless and should be removed

Copy link
Owner

@icebob icebob left a comment

Choose a reason for hiding this comment

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

Nice job. Thanks for your prompt work.

@icebob icebob merged commit 224ada9 into icebob:master Aug 24, 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.

3 participants