Skip to content

Commit c8ccd85

Browse files
committed
Fix cyclomatic complexity
Signed-off-by: Fabio José <[email protected]>
1 parent d25cfc3 commit c8ccd85

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/bindings/http/binary_0_2.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ HTTPBinary.prototype.emit = function(cloudevent){
1717
// Always set stuff in _config
1818
var _headers = _config["headers"];
1919

20-
if(cloudevent.getContenttype()) {
21-
_headers["Content-Type"] = cloudevent.getContenttype();
22-
}
20+
_headers["Content-Type"] = cloudevent.getContenttype();
2321

2422
_headers["ce-type"] = cloudevent.getType();
2523
_headers["ce-specversion"] = cloudevent.getSpecversion();

0 commit comments

Comments
 (0)