From 7eeb595c55d0891ba04958fd0e8303d58c341ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Bergn=C3=A9hr?= Date: Mon, 30 Sep 2024 08:47:35 +0200 Subject: [PATCH] Use format string for `Fprintf` Fixes lint error `SA1006`. --- pkg/runtime/runtime_manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runtime/runtime_manifest.go b/pkg/runtime/runtime_manifest.go index 45f514b13..ba519fa96 100644 --- a/pkg/runtime/runtime_manifest.go +++ b/pkg/runtime/runtime_manifest.go @@ -142,7 +142,7 @@ type FormattedObject map[string]interface{} // Format the `FormattedObject` as a JSON string. func (fo FormattedObject) Format(f fmt.State, c rune) { jsonStr, _ := json.Marshal(fo) - fmt.Fprintf(f, string(jsonStr)) + fmt.Fprintf(f, "%s", string(jsonStr)) } func (m *RuntimeManifest) resolveParameter(pd manifest.ParameterDefinition) (interface{}, error) {