Skip to content

Commit

Permalink
fix: remove unnecessary checks from the example
Browse files Browse the repository at this point in the history
  • Loading branch information
makma authored Nov 7, 2022
1 parent ed21008 commit e6dd2fd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ try {
client.getVisitorHistory(visitorId),
client.getEvent(requestId),
]);

if (visitorHistory.visitorId !== visitorId) {
throw new Error('Received visitorId does not match with given');
}

if (event.products.identification.data.requestId !== requestId) {
throw new Error('Received requestId does not match with given');
}
} catch (e) {
console.error(e);
process.exit(1);
Expand Down

0 comments on commit e6dd2fd

Please sign in to comment.