Skip to content

Commit

Permalink
code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jan 8, 2024
1 parent 541ee0a commit 369e3ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return {
-- Define your formatters
formatters_by_ft = {
vue = { "eslint_d" },
typescript = { "typescript", "eslint_d" },
},
},
},
Expand Down
3 changes: 1 addition & 2 deletions src/server/backend/bancho.py/transforms/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function toUserClan(user: Pick<DatabaseUser & { clan: Pick<Clan, 'id' | '
export type DatabaseUserCompactFields = 'id' | 'name' | 'safeName' | 'country' | 'priv'
export function toUserCompact(user: Pick<DatabaseUser, DatabaseUserCompactFields>, { avatar }: {
avatar: {
domain?: string
domain: string
}
}): UserCompact<Id> {
return {
Expand All @@ -139,7 +139,6 @@ export function toUserCompact(user: Pick<DatabaseUser, DatabaseUserCompactFields
flag: user.country.toUpperCase() as CountryCode,
avatarSrc: avatar.domain && toUserAvatarSrc(
user,
// @ts-expect-error you are dumb
{ avatar }
),
roles: toRoles(user.priv),
Expand Down

0 comments on commit 369e3ab

Please sign in to comment.