Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix comments
Browse files Browse the repository at this point in the history
Pantani committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent eb7901e commit bc6b053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignite/services/scaffolder/type.go
Original file line number Diff line number Diff line change
@@ -216,15 +216,15 @@ func (s Scaffolder) AddType(
return s.Run(append(gens, g)...)
}

// checkMaxLength checks if the index length exceeds the maximum allowed length
// checkMaxLength checks if the index length exceeds the maximum allowed length.
func checkMaxLength(name string) error {
if len(name) > maxLength {
return errors.Errorf("index exceeds maximum allowed length of %d characters", maxLength)
}
return nil
}

// checkForbiddenTypeIndex returns true if the name is forbidden as a index name.
// checkForbiddenTypeIndex returns true if the name is forbidden as an index name.
func checkForbiddenTypeIndex(index string) error {
indexSplit := strings.Split(index, datatype.Separator)
if len(indexSplit) > 1 {

0 comments on commit bc6b053

Please sign in to comment.