Skip to content

Commit

Permalink
chore: removing redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
David Boyne committed Apr 30, 2021
1 parent 6a3d31f commit dc72847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const generateFiles = async (allSchemasForEvents, eventRules) => {
const makeDocs = allSchemasForEvents.map(async (schema) => {
const { Content = {}, SchemaName, SchemaVersion } = schema

const source = Content['x-amazon-events-source'].replace('DeadHappy', 'MyApp')
const source = Content['x-amazon-events-source']
const detailType = Content['x-amazon-events-detail-type']
const sourceDescription = eventMetaData?.[source]?.metadata?.title || ''

Expand Down

0 comments on commit dc72847

Please sign in to comment.