refactor: remove redundant contextDescription empty check (#11219)
This commit is contained in:
parent
8cafd8f820
commit
e297e406ce
@ -457,7 +457,6 @@ export default class LValParser extends NodeUtils {
|
||||
break;
|
||||
|
||||
default: {
|
||||
if (contextDescription) {
|
||||
this.raise(
|
||||
expr.start,
|
||||
bindingType === BIND_NONE
|
||||
@ -465,16 +464,6 @@ export default class LValParser extends NodeUtils {
|
||||
: Errors.InvalidLhsBinding,
|
||||
contextDescription,
|
||||
);
|
||||
} else {
|
||||
// todo: check if contextDescription is never empty
|
||||
const message =
|
||||
(bindingType === BIND_NONE
|
||||
? "Invalid"
|
||||
: /* istanbul ignore next */ "Binding invalid") +
|
||||
" left-hand side expression";
|
||||
|
||||
this.raise(expr.start, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user