Skip to content

Commit

Permalink
reverting additional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernan Guardado authored and Hernan Guardado committed Dec 18, 2023
1 parent c271ce9 commit ae5ff78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/integration/kits.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime/pkg/client"

"github.com/apache/camel-k/v2/pkg/platform"
trait "github.com/apache/camel-k/v2/pkg/trait"
"github.com/apache/camel-k/v2/pkg/trait"
"github.com/apache/camel-k/v2/pkg/util"
"github.com/apache/camel-k/v2/pkg/util/defaults"
"github.com/apache/camel-k/v2/pkg/util/log"
Expand Down Expand Up @@ -263,9 +263,7 @@ func hasMatchingSourcesForNative(it *v1.Integration, kit *v1.IntegrationKit) boo
if len(integrationSources) != len(kit.Spec.Sources) {
return false
}

for _, itSource := range integrationSources {

found := false
for _, ikSource := range kit.Spec.Sources {
if itSource.Content == ikSource.Content {
Expand Down
2 changes: 1 addition & 1 deletion pkg/trait/quarkus.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var (
nativeSupportSettings = languageSettings{true, false}
)

// Retroactive helper for getting language settings
// Retrieves the settings of the given language from the Camel catalog.
func getLanguageSettings(e *Environment, language v1.Language) languageSettings {
if loader, ok := e.CamelCatalog.Loaders[string(language)]; ok {
native, nExists := loader.Metadata["native"]
Expand Down

0 comments on commit ae5ff78

Please sign in to comment.