From 934cff02b199955c0f50cf10b568759b10c10c1d Mon Sep 17 00:00:00 2001 From: Team1280Programming Date: Mon, 19 Feb 2024 20:33:19 +0000 Subject: [PATCH] style: format --- src/app/affiliation/getAffiliations.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/affiliation/getAffiliations.ts b/src/app/affiliation/getAffiliations.ts index 3f3a16d..2bc5c51 100644 --- a/src/app/affiliation/getAffiliations.ts +++ b/src/app/affiliation/getAffiliations.ts @@ -25,9 +25,7 @@ const checkAffiliation = ( return false } -const getNumberOfDocumentsByAffiliation = ( - affiliationShort: string -) => { +const getNumberOfDocumentsByAffiliation = (affiliationShort: string) => { // Find authors with the given affiliation const results: DocumentWithSlug[] = [] for (const [key, value] of Object.entries(authors)) { @@ -69,9 +67,7 @@ export default function getAffiliations(): string[] { affiliations[i] ) } - affiliations.sort( - (a, b) => affiliationDocs[b] - affiliationDocs[a] - ) + affiliations.sort((a, b) => affiliationDocs[b] - affiliationDocs[a]) return affiliations }