Skip to content

Commit

Permalink
register.ts: aesthetic fix to match prev commit
Browse files Browse the repository at this point in the history
Prev commit SHA: `80aee9e5aeff07b59e186a2d91b901ac6246993e`.
  • Loading branch information
EthanThatOneKid committed Oct 14, 2023
1 parent 80aee9e commit 856f171
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/discord_app/sub/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export const SUB_REGISTER: APIApplicationCommandOption = {
*/
export function parseRegisterOptions(
options: APIApplicationCommandInteractionDataOption[],
): {
[REGISTER_LC_USERNAME]: string;
} {
) {
const registerOption = options.find((option) => option.name === REGISTER);
if (!registerOption) {
throw new Error("No options provided");
Expand All @@ -59,9 +57,7 @@ export function parseRegisterOptions(
throw new Error("Expected a string for the username option.");
}

return {
[REGISTER_LC_USERNAME]: usernameOption.value,
};
return { [REGISTER_LC_USERNAME]: usernameOption.value };
}

/**
Expand Down

0 comments on commit 856f171

Please sign in to comment.