diff --git a/lib/specs/spec_0_2.js b/lib/specs/spec_0_2.js index dfef99c..0b9a534 100644 --- a/lib/specs/spec_0_2.js +++ b/lib/specs/spec_0_2.js @@ -33,11 +33,11 @@ function Spec02(){ * Check the spec constraints */ Spec02.prototype.check = function(ce){ - var to_check = ce; - if(!to_check) { - to_check = this.payload; + var toCheck = ce; + if(!toCheck) { + toCheck = this.payload; } - var valid = validate(to_check); + var valid = validate(toCheck); if(!valid) { throw {message: "invalid payload", errors: validate.errors};