Merge pull request #8590 from Foxboron/morten/fix-go1.15

release/mock: Ensure conversion from int to string yields a string
pull/8627/head
Matthew Fisher 5 years ago committed by GitHub
commit 198f403688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,6 +17,7 @@ limitations under the License.
package release package release
import ( import (
"fmt"
"math/rand" "math/rand"
"helm.sh/helm/v3/pkg/chart" "helm.sh/helm/v3/pkg/chart"
@ -53,7 +54,7 @@ func Mock(opts *MockReleaseOptions) *Release {
name := opts.Name name := opts.Name
if name == "" { if name == "" {
name = "testrelease-" + string(rand.Intn(100)) name = "testrelease-" + fmt.Sprint(rand.Intn(100))
} }
version := 1 version := 1

Loading…
Cancel
Save