diff --git a/lib/bindings/http/commons.js b/lib/bindings/http/commons.js index f713822..f3170bf 100644 --- a/lib/bindings/http/commons.js +++ b/lib/bindings/http/commons.js @@ -4,8 +4,8 @@ const Constants = require("./constants.js"); function sanityContentType(contentType) { if(contentType) { return Array.of(contentType) - .map(c => c.split(";")) - .map(c => c.shift()) + .map((c) => c.split(";")) + .map((c) => c.shift()) .shift(); } diff --git a/lib/specs/spec_0_3.js b/lib/specs/spec_0_3.js index 371a412..13256f2 100644 --- a/lib/specs/spec_0_3.js +++ b/lib/specs/spec_0_3.js @@ -78,7 +78,7 @@ Spec03.prototype.check = function(ce){ var valid = isValidAgainstSchema(toCheck); Array.of(toCheck) - .filter((tc) => (typeof tc.data) !== 'string') + .filter((tc) => (typeof tc.data) !== "string") .filter((tc) => tc["datacontentencoding"]) .forEach((tc) => { throw {message: "invalid payload", errors: [ @@ -94,7 +94,7 @@ Spec03.prototype.check = function(ce){ throw {message: "invalid payload", errors: [ "Unsupported content encoding: " + dce ]}; - }) + }); if(!valid) { throw {message: "invalid payload", errors: isValidAgainstSchema.errors};