Skip to content

Commit

Permalink
Fix double import
Browse files Browse the repository at this point in the history
Signed-off-by: thepetk <thepetk@gmail.com>
  • Loading branch information
thepetk committed Mar 21, 2024
1 parent 73f1250 commit 60258b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/componentdetectionquery_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"github.com/hashicorp/go-multierror"
"github.com/prometheus/client_golang/prometheus"
appstudiov1alpha1 "github.com/redhat-appstudio/application-api/api/v1alpha1"
"github.com/redhat-appstudio/application-service/cdq-analysis/pkg"
cdqanalysis "github.com/redhat-appstudio/application-service/cdq-analysis/pkg"
"github.com/redhat-appstudio/application-service/pkg/github"
logutil "github.com/redhat-appstudio/application-service/pkg/log"
Expand Down Expand Up @@ -172,7 +171,7 @@ func (r *ComponentDetectionQueryReconciler) Reconcile(ctx context.Context, req c
}

// check if the given url is from github
if err := pkg.ValidateGithubURL(sourceURL); err != nil {
if err := cdqanalysis.ValidateGithubURL(sourceURL); err != nil {
// User error - the git url provided is not from github
log.Error(err, "unable to validate github url")
r.SetCompleteConditionAndUpdateCR(ctx, req, &componentDetectionQuery, copiedCDQ, err)
Expand Down

0 comments on commit 60258b7

Please sign in to comment.