DEV: Fix linting (#21877)

Follow-up to c2332d7505
This commit is contained in:
Alan Guo Xiang Tan 2023-06-01 10:15:11 +09:00 committed by GitHub
parent c2332d7505
commit d10a050da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -70,11 +70,10 @@ export function avatarUrl(template, size, { customGetURL } = {}) {
let allowedSizes = null;
export function getRawAvatarSize(size) {
allowedSizes ??=
helperContext()
.siteSettings["avatar_sizes"].split("|")
.map((s) => parseInt(s, 10))
.sort((a, b) => a - b);
allowedSizes ??= helperContext()
.siteSettings["avatar_sizes"].split("|")
.map((s) => parseInt(s, 10))
.sort((a, b) => a - b);
size = getRawSize(size);