Skip to content

Commit

Permalink
style: format with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Jan 24, 2024
1 parent feadaea commit 758b314
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/commands/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,20 @@ const logTypeToEmoji = new Map<LogType, string>([
]);

const groupLogs = (logs: ProgressLog[]): Record<string, ProgressLog[]> =>
logs.reduce((prev, l) => {
const productString = productToString.get(l.product)!;
logs.reduce(
(prev, l) => {
const productString = productToString.get(l.product)!;

if (!(productString in prev)) {
prev[productString] = [];
}
if (!(productString in prev)) {
prev[productString] = [];
}

prev[productString].push(l);
prev[productString].push(l);

return prev;
}, {} as Record<string, ProgressLog[]>);
return prev;
},
{} as Record<string, ProgressLog[]>,
);

const partitionStringsByLength = (strings: string[], maxLength: number): string[][] => {
const final: string[][] = [[]];
Expand Down Expand Up @@ -232,7 +235,7 @@ export default class Progress extends SlashCommand {
name: 'log',
description: 'The the log to delete',
required: true,
autocomplete: true
autocomplete: true,
},
],
},
Expand Down

0 comments on commit 758b314

Please sign in to comment.