Skip to content

Commit 35d8e53

Browse files
shin19991207datho7561
authored andcommitted
fixed the prettier issues in yamlSchemaService.ts
Signed-off-by: Morgan Chang <shin19991207@gmail.com>
1 parent 9d50fa8 commit 35d8e53

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/languageservice/services/yamlSchemaService.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const schemaDialectInFlight = new Map<string, Promise<SchemaDialect>>();
6161

6262
const AJV_LOCALE_ALIASES = new Map<string, string>([
6363
['zh-cn', 'zh'],
64-
['zh-tw', 'zh-TW']
64+
['zh-tw', 'zh-TW'],
6565
]);
6666

6767
// metadata/keywords that don't add constraints and thus don't count as $ref siblings
@@ -1449,9 +1449,7 @@ function getAjvLocalizer(locale?: string): Localize | undefined {
14491449
const lowerLocale = locale.trim().toLowerCase();
14501450
const aliasedLocale = AJV_LOCALE_ALIASES.get(lowerLocale);
14511451

1452-
return ajvLocalizers[locale]
1453-
|| ajvLocalizers[lowerLocale]
1454-
|| (aliasedLocale ? ajvLocalizers[aliasedLocale] : undefined);
1452+
return ajvLocalizers[locale] || ajvLocalizers[lowerLocale] || (aliasedLocale ? ajvLocalizers[aliasedLocale] : undefined);
14551453
}
14561454

14571455
function localizeAjvErrors(errors: ErrorObject[] | null | undefined, locale?: string): void {

0 commit comments

Comments
 (0)