You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/04/18 08:46:04 UTC
[GitHub] [camel-k] squakez commented on a diff in pull request #3213: Update camel-k-runtime to 1.13.0 in defaults
squakez commented on code in PR #3213:
URL: https://github.com/apache/camel-k/pull/3213#discussion_r851979895
##########
pkg/util/source/inspector_yaml.go:
##########
@@ -73,7 +73,7 @@ func (i YAMLInspector) parseStep(key string, content interface{}, meta *Metadata
dataFormatID := defaultJSONDataFormat
if jsContent, jsContentOk := js.(map[interface{}]interface{}); jsContentOk {
if lib, libOk := jsContent["library"]; libOk {
- dataFormatID = strings.ToLower(fmt.Sprintf("json-%s", lib))
+ dataFormatID = strings.ToLower(fmt.Sprint(lib))
Review Comment:
Should'nt be `fmt.Sprintf("%s", lib)`?
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org