fix lint from an improved unnecessary_parenthesis (#83433)

This commit is contained in:
Alexandre Ardhuin
2021-05-27 22:39:03 +02:00
committed by GitHub
parent 7311b9d6ac
commit 0ef0f0ba5e
6 changed files with 27 additions and 27 deletions

View File

@@ -271,7 +271,7 @@ $factoryDeclaration
if (languageToLocales[language].length == 1) {
output.writeln('''
case '$language':
return $generatedClassPrefix${(languageToLocales[language][0]).camelCase()}($factoryArguments);''');
return $generatedClassPrefix${languageToLocales[language][0].camelCase()}($factoryArguments);''');
} else if (!languageToScriptCodes.containsKey(language)) { // Does not distinguish between scripts. Switch on countryCode directly.
output.writeln('''
case '$language': {