Fix cyclomatic complexity
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
d25cfc352a
commit
c8ccd85bc8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue