refactor: simple

This commit is contained in:
cha0s 2021-02-02 00:43:23 -06:00
parent 01eb3e5184
commit 2e4cd4dd39

View File

@ -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';