Code style: camelCase
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
d568899ce7
commit
ba573fa94f
|
@ -33,11 +33,11 @@ function Spec02(){
|
||||||
* Check the spec constraints
|
* Check the spec constraints
|
||||||
*/
|
*/
|
||||||
Spec02.prototype.check = function(ce){
|
Spec02.prototype.check = function(ce){
|
||||||
var to_check = ce;
|
var toCheck = ce;
|
||||||
if(!to_check) {
|
if(!toCheck) {
|
||||||
to_check = this.payload;
|
toCheck = this.payload;
|
||||||
}
|
}
|
||||||
var valid = validate(to_check);
|
var valid = validate(toCheck);
|
||||||
|
|
||||||
if(!valid) {
|
if(!valid) {
|
||||||
throw {message: "invalid payload", errors: validate.errors};
|
throw {message: "invalid payload", errors: validate.errors};
|
||||||
|
|
Loading…
Reference in New Issue