From 007fce3249f78aa98f9cac5f59b235b71aae81ad Mon Sep 17 00:00:00 2001 From: RebeccaMahany Date: Wed, 14 Aug 2024 13:43:37 -0400 Subject: [PATCH] Remove unnecessary fmt.Sprintf --- pkg/packaging/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/packaging/fetch.go b/pkg/packaging/fetch.go index 7688cd6bb..837e44fb6 100644 --- a/pkg/packaging/fetch.go +++ b/pkg/packaging/fetch.go @@ -198,5 +198,5 @@ func getReleaseVersionFromTufRepo(binaryName, channel, platform, arch string) (s targetFilename := filepath.Base(custom.Target) // Target looks like -.tar.gz -- strip off extension and binary name to get version - return strings.TrimSuffix(strings.TrimPrefix(targetFilename, fmt.Sprintf(binaryName+"-")), ".tar.gz"), nil + return strings.TrimSuffix(strings.TrimPrefix(targetFilename, binaryName+"-"), ".tar.gz"), nil }