Currently, the mode variable in getMode is set to 'unknown' but this will never get returned as the else clause will throw a TypeError if the detected mode (from the passed-in headers) is not structured or binary. This commit suggests simplifying the getMode function and removes the mode variable. Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com> |
||
|---|---|---|
| .. | ||
| bindings/http | ||
| formats | ||
| specs | ||
| utils | ||
| cloudevent.js | ||