Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Yicong-Huang committed Jun 14, 2023
1 parent 22808db commit 5ea2e08
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,6 @@ export class OperatorPropertyEditFrameComponent implements OnInit, OnChanges, On
};

const checkEnumConstraint = (inputAttributeType: AttributeType, enumConstraint: AttributeTypeEnumRule) => {
if (!isDefined(enumConstraint)) {
return;
}
if (!enumConstraint.includes(inputAttributeType)) {
throw TypeError(`it's expected to be ${enumConstraint.join(" or ")}.`);
}
Expand Down Expand Up @@ -613,11 +610,6 @@ export class OperatorPropertyEditFrameComponent implements OnInit, OnChanges, On
}
};

const inputSchema = this.schemaPropagationService.getOperatorInputSchema(this.currentOperatorId);
if (!inputSchema) {
return true;
}

// iterate through all properties in attributeType
for (const [prop, constraint] of Object.entries(schema.attributeTypeRules)) {
try {
Expand Down

0 comments on commit 5ea2e08

Please sign in to comment.