timgws / QueryBuilderParser

A simple to use query builder for the jQuery QueryBuilder plugin for use with Laravel.
MIT License
159 stars 66 forks source link

Simplify operatorValueWhenNotAcceptingOne #9

Closed ostrolucky closed 8 years ago

ostrolucky commented 8 years ago

Remove duplicated condition and not much useful middleman variable

timgws commented 8 years ago

This function was extracted during a refactor, hence the check if a rule was accepting values (the only function that calls this function already checks this case, so it is indeed a useless check).

Thanks for the PR!