Skip to content

Commit

Permalink
Assign EmitAuditEvent to err for subsequent check. (#11501) (#11505)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tener authored Mar 28, 2022
1 parent 7de7094 commit f678c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (s *Server) validateGenerationLabel(ctx context.Context, user types.User, c

// Emit an audit event.
userMetadata := ClientUserMetadata(ctx)
if s.emitter.EmitAuditEvent(s.closeCtx, &apievents.RenewableCertificateGenerationMismatch{
if err := s.emitter.EmitAuditEvent(s.closeCtx, &apievents.RenewableCertificateGenerationMismatch{
Metadata: apievents.Metadata{
Type: events.RenewableCertificateGenerationMismatchEvent,
Code: events.RenewableCertificateGenerationMismatchCode,
Expand Down

0 comments on commit f678c75

Please sign in to comment.