Skip to content

Commit

Permalink
Update event.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SudhanshuBawane authored Dec 5, 2024
1 parent 6d56518 commit d308db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func createEvent(inputEvent *corev2.Event, status int, checkNameTemplate string,
var err error
if len(checkNameTemplate) > 0 {
checkName, err = templates.EvalTemplate("check-name", checkNameTemplate, inputEvent)
}
if err != nil {
if err != nil {
return nil, err
}
}
outputEvent := corev2.Event{Entity: inputEvent.Entity}
outputEvent.Namespace = inputEvent.Namespace
Expand Down

0 comments on commit d308db2

Please sign in to comment.