Skip to content

Commit

Permalink
remove unnecessary string formatting
Browse files Browse the repository at this point in the history
Signed-off-by: sbhat14 <[email protected]>
  • Loading branch information
sbhat14 authored and sbhat14 committed Nov 11, 2024
1 parent 5cf0d3c commit 0b155e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/structured/structured.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func PersistentVolClaimExists(kubeClientset kubernetes.Interface, name, expected
_, err := util.RetryOnError(
&util.DefaultRetry,
func(err error) bool {
msg := fmt.Sprintf("persistentvolumeclaim had unexpected phase")
msg := "persistentvolumeclaim had unexpected phase"
return util.IsRetriable(err) || strings.Contains(err.Error(), msg)
},
func() (interface{}, error) {
Expand Down

0 comments on commit 0b155e3

Please sign in to comment.