claudio4j commented on code in PR #3213:
URL: https://github.com/apache/camel-k/pull/3213#discussion_r852079371
##########
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:
It's safer to use the string formatter, thanks for noticing.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]