Skip to content

Commit

Permalink
chore(console): refine comments
Browse files Browse the repository at this point in the history
refine comments
  • Loading branch information
simeng-li committed May 15, 2024
1 parent 017b54d commit 38d300c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/console/src/consts/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const isDataHookSchema = (schema: string): schema is DataHookSchema =>
Object.values(DataHookSchema).includes(schema as DataHookSchema);

// Group DataHook events by schema
// TODO: Replace this using groupBy once Node v22 goes LTS
// TODO: Replace this using `groupBy` once Node v22 goes LTS

Check warning on line 30 in packages/console/src/consts/webhooks.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/console/src/consts/webhooks.ts#L30

[no-warning-comments] Unexpected 'todo' comment: 'TODO: Replace this using `groupBy` once...'.
const schemaGroupedDataHookEventsMap = dataHookEvents.reduce<Map<DataHookSchema, DataHookEvent[]>>(
(eventGroup, event) => {
const [schema] = event.split('.');
Expand All @@ -41,7 +41,7 @@ const schemaGroupedDataHookEventsMap = dataHookEvents.reduce<Map<DataHookSchema,
new Map()
);

// Sort the grouped DataHook events per console product design
// Sort the grouped `DataHook` events per console product design
const hookEventSchemaOrder: {
[key in DataHookSchema]: number;
} = {
Expand Down

0 comments on commit 38d300c

Please sign in to comment.