Skip to content

Commit

Permalink
lint: use concatenation instead of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
kriive committed Nov 19, 2024
1 parent 4fef230 commit e2df617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dependencies/tools/kapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewKapp(runner *kapp.Runner, version string) *Kapp {
os: runtime.GOOS,
version: version,
checker: &checker{
regex: regexp.MustCompile(fmt.Sprintf("kapp version %s", semver.Regex)),
regex: regexp.MustCompile("kapp version " + semver.Regex),
runner: runner,
splitFn: func(version string) []string {
return strings.Split(version, " ")
Expand Down

0 comments on commit e2df617

Please sign in to comment.