Skip to content

Commit

Permalink
Fix nil point reference in metrics
Browse files Browse the repository at this point in the history
Signed-off-by: thepetk <thepetk@gmail.com>
  • Loading branch information
thepetk committed Mar 19, 2024
1 parent dde4d04 commit b7acbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/component_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (r *ComponentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
if !isGithubURL(source.GitSource.URL) {
// User error - the git url provided is not from github
log.Info(fmt.Sprintf("source git url %v is not from github", source.GitSource.URL))
metrics.IncrementComponentCreationSucceeded(prevErrCondition, err.Error())
metrics.IncrementComponentCreationSucceeded("", "")
return ctrl.Result{}, nil
}
context := source.GitSource.Context
Expand Down

0 comments on commit b7acbd9

Please sign in to comment.