Skip to content

Commit

Permalink
Merge pull request #267 from ditrit/bugfix/documentation
Browse files Browse the repository at this point in the history
Fix bad documentation
  • Loading branch information
Zorin95670 authored Aug 2, 2024
2 parents 90c1530 + 0f6e8a4 commit f074bad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class Component extends FileInformation {
}

/**
* Set error if is required and value is null.
* Set error if the required attribute is not present or if its value is null.
* @param {ParserLog[]} [errors] - Errors to set, can be null.
* @returns {ParserLog[]} All attributes error.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/models/ComponentAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ class ComponentAttribute {
}

/**
* Set error if is required and value is null.
* Set error if the required attribute is not present or if its value is null.
* @param {ParserLog[]} [errors] - Errors to set, can be null.
* @param {string} [id] - Component id.
* @returns {ParserLog[]} All attributes error.
*/
validateRequiredAttributes(errors = [], id = null) {
Expand Down

0 comments on commit f074bad

Please sign in to comment.