mirror of
https://github.com/microsoft/pyright.git
synced 2024-11-12 23:46:20 +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];
|
const firstArg = argList[0];
|
||||||
if (firstArg.valueExpression && firstArg.valueExpression.nodeType === ParseNodeType.StringList) {
|
if (firstArg.valueExpression && firstArg.valueExpression.nodeType === ParseNodeType.StringList) {
|
||||||
const typeAliasName = firstArg.valueExpression.strings
|
const typeAliasName = firstArg.valueExpression.strings.map((s) => s.value).join('');
|
||||||
.map((s) => s.value)
|
|
||||||
.join('');
|
|
||||||
if (typeAliasName !== nameNode.value) {
|
if (typeAliasName !== nameNode.value) {
|
||||||
addError(Localizer.Diagnostic.typeAliasTypeNameMismatch(), firstArg.valueExpression);
|
addError(Localizer.Diagnostic.typeAliasTypeNameMismatch(), firstArg.valueExpression);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user