Code style: camelCase

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-07-23 09:26:36 -03:00
parent d568899ce7
commit ba573fa94f
1 changed files with 4 additions and 4 deletions

View File

@ -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};