squakez commented on code in PR #5086: URL: https://github.com/apache/camel-k/pull/5086#discussion_r1461778750
########## pkg/trait/camel.go: ########## @@ -61,7 +61,11 @@ func (t *camelTrait) InfluencesBuild(this, prev map[string]interface{}) bool { func (t *camelTrait) Configure(e *Environment) (bool, *TraitCondition, error) { if t.RuntimeVersion == "" { - t.RuntimeVersion = determineRuntimeVersion(e) + if runtimeVersion, err := determineRuntimeVersion(e); err != nil { + return false, nil, err + } else { Review Comment: Ah, yes. This is because of the scope of the `if` condition. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org