lib: remove unnecessary else statements (#146)
lib: remove unnecessary else statements (#146)

This commit removes two unnecessary else clauses in unmarshaller.js, and
also extracts the throwing of TypeError of invalid content types into a
separate function to avoid some code duplication.

Signed-off-by: Daniel Bevenius <ae63d1d4d7994483a3e520cafec7a829fe25c0a1@gmail.com>
cloudevents/sdk-javascript,cloudevents/sdk-javascript