zrhoffman commented on a change in pull request #5044:
URL: https://github.com/apache/trafficcontrol/pull/5044#discussion_r492503485



##########
File path: lib/go-tc/invalidationjobs.go
##########
@@ -272,9 +275,83 @@ func (job *InvalidationJobInput) Validate(tx *sql.Tx) 
error {
        if len(errs) > 0 {
                return errors.New(strings.Join(errs, ", "))
        }
+
+       errs = job.ValidateUniqueness(tx, dsID)
+       if len(errs) > 0 {
+               return errors.New(strings.Join(errs, ", "))

Review comment:
       This can be done with `util.JoinErrs()` (or `utils.JoinErrsSep()` if you 
prefer `", "` as the separator)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to