mirror of
https://github.com/microsoft/pyright.git
synced 2024-11-09 05:30:09 +03:00
Fixed style issue.
This commit is contained in:
parent
b971a0c689
commit
c2bf866d41
@ -11670,9 +11670,7 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
|
||||
|
||||
const firstArg = argList[0];
|
||||
if (firstArg.valueExpression && firstArg.valueExpression.nodeType === ParseNodeType.StringList) {
|
||||
const typeAliasName = firstArg.valueExpression.strings
|
||||
.map((s) => s.value)
|
||||
.join('');
|
||||
const typeAliasName = firstArg.valueExpression.strings.map((s) => s.value).join('');
|
||||
if (typeAliasName !== nameNode.value) {
|
||||
addError(Localizer.Diagnostic.typeAliasTypeNameMismatch(), firstArg.valueExpression);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user