refact: remove isValkid false on error

This commit is contained in:
Joshua Shoemaker 2020-06-16 20:49:45 -05:00
parent cdfac800a1
commit be1d1a6333

View File

@ -4,7 +4,6 @@ class Node {
constructor (props) { constructor (props) {
const validatePropsResponse = this._validateConstructionProps(props) const validatePropsResponse = this._validateConstructionProps(props)
if (validatePropsResponse.status === 'ERR') { if (validatePropsResponse.status === 'ERR') {
this.isValid = false
throw validatePropsResponse throw validatePropsResponse
} }
else { else {