Skip to content

Commit

Permalink
feat: event.id is no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Nov 22, 2017
1 parent a92dec9 commit 8c99a9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions event-handler/receive.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ const wrapErrorHandler = require('./wrap-error-handler')

// main handler function
function receiverHandle (state, event) {
if (!event || !event.id) {
throw new Error('Event id not passed')
}

if (!event.name) {
if (!event || !event.name) {
throw new Error('Event name not passed')
}

Expand Down

0 comments on commit 8c99a9a

Please sign in to comment.