Skip to content

Commit

Permalink
chore: remove duplicated IValidation definition (#1091)
Browse files Browse the repository at this point in the history
The interface `IValidation` was defined twice in this code. I delete the duplicate, whose lines were to 100% identical to the ones from line 480.

Fixes #1095
  • Loading branch information
ThomasSteinbach authored Jun 14, 2022
1 parent be7f57b commit f8edef8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,6 @@ deployed.
## interface IValidation <a id="constructs-ivalidation"></a>


Implement this interface in order for the construct to be able to validate itself.

Implement this interface in order for the construct to be able to validate itself.
### Methods

Expand All @@ -491,10 +489,6 @@ Implement this interface in order for the construct to be able to validate itsel

Validate the current construct.

This method can be implemented by derived constructs in order to perform
validation logic. It is called on all constructs before synthesis.
Validate the current construct.

This method can be implemented by derived constructs in order to perform
validation logic. It is called on all constructs before synthesis.

Expand Down
15 changes: 0 additions & 15 deletions src/construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,21 +506,6 @@ export enum ConstructOrder {
POSTORDER
}

/**
* Implement this interface in order for the construct to be able to validate itself.
*/
export interface IValidation {
/**
* Validate the current construct.
*
* This method can be implemented by derived constructs in order to perform
* validation logic. It is called on all constructs before synthesis.
*
* @returns An array of validation error messages, or an empty array if there the construct is valid.
*/
validate(): string[];
}

const PATH_SEP_REGEX = new RegExp(`${Node.PATH_SEP}`, 'g');

/**
Expand Down

0 comments on commit f8edef8

Please sign in to comment.