From c8ccd85bc8c1143bbb563212a72ac8dc9dd8e516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Sun, 20 Jan 2019 21:43:53 -0200 Subject: [PATCH] Fix cyclomatic complexity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- lib/bindings/http/binary_0_2.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/bindings/http/binary_0_2.js b/lib/bindings/http/binary_0_2.js index c398a0b..8d249e5 100644 --- a/lib/bindings/http/binary_0_2.js +++ b/lib/bindings/http/binary_0_2.js @@ -17,9 +17,7 @@ HTTPBinary.prototype.emit = function(cloudevent){ // Always set stuff in _config var _headers = _config["headers"]; - if(cloudevent.getContenttype()) { - _headers["Content-Type"] = cloudevent.getContenttype(); - } + _headers["Content-Type"] = cloudevent.getContenttype(); _headers["ce-type"] = cloudevent.getType(); _headers["ce-specversion"] = cloudevent.getSpecversion();