Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Dec 31, 2024
1 parent 8d15c21 commit 685bb5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/types/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ func (p *Pipeline) Validate() error {
return ErrEmptyPipelineVersion
}

// calculate total size of favorites
// calculate total size of warnings
total := 0
for _, w := range p.Warnings {
total += len(w)
}

// verify the Favorites field is within the database constraints
// verify the Warnings field is within the database constraints
// len is to factor in number of comma separators included in the database field,
// removing 1 due to the last item not having an appended comma
if (total + len(p.Warnings) - 1) > constants.PipelineWarningsMaxSize {
Expand Down

0 comments on commit 685bb5a

Please sign in to comment.