Skip to content

Commit

Permalink
Use format string for Fprintf
Browse files Browse the repository at this point in the history
Fixes lint error `SA1006`.
  • Loading branch information
lbergnehr committed Sep 30, 2024
1 parent 82c5012 commit 7eeb595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runtime/runtime_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7eeb595

Please sign in to comment.