Skip to content

Commit 99194db

Browse files
committed
add validation
1 parent c2ac5ab commit 99194db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/bus/message_pipe.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,11 @@ func (p *MessagePipe) createDataPlaneResponse(correlationID string, status mpi.C
359359
func validateLabels(labels map[string]any) bool {
360360
for _, value := range labels {
361361
if val, ok := value.(string); ok {
362-
if config.ValidateLabel(val) == false {
362+
if config.ValidateLabel(val) {
363363
return false
364364
}
365365
}
366366
}
367+
367368
return true
368369
}

0 commit comments

Comments
 (0)