Skip to content

Commit

Permalink
we do a bit of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TiltedToast committed Mar 23, 2024
1 parent 394734b commit cd3d0ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/reddit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function sub(input: ChatInputCommandInteraction | Message) {
}

const json = (await response.json().catch(console.error)) as {
data: Snoowrap.Subreddit;
data: { over18: boolean; permalink: string };
reason?: string;
kind: string;
};
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function formatTable<K extends string | number | symbol, V>(rows: Record<
const keys = Object.keys(rows[0]);
const values = rows.map((obj) => Object.values(obj));

const columns = {} as { [key: number]: { width: number } };
const columns = {} as Record<number, { width: number }>;

for (let i = 0; i < values[0].length; i++) {
const minVal = Math.min(
Expand Down

0 comments on commit cd3d0ec

Please sign in to comment.