refactor: simple
This commit is contained in:
parent
01eb3e5184
commit
2e4cd4dd39
|
@ -304,14 +304,9 @@ const Expression = ({
|
|||
);
|
||||
}
|
||||
}
|
||||
let realType;
|
||||
if (isKey(lastOp)) {
|
||||
realType = description.args
|
||||
? 'function'
|
||||
: description.type;
|
||||
}
|
||||
if (isInvocation(lastOp)) {
|
||||
realType = description.type;
|
||||
let realType = description.type;
|
||||
if (isKey(lastOp) && description.args) {
|
||||
realType = 'function';
|
||||
}
|
||||
if (expressionValue) {
|
||||
realType = 'undefined' === description.type ? 'undefined' : 'void';
|
||||
|
|
Loading…
Reference in New Issue
Block a user