From 1b601bfed3244691624357968d5d018b50bffc5a Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 20 Jul 2023 10:46:22 +0200 Subject: go.mod: update golangci-lint to 1.53.3 --- .../kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/kunwardeep') diff --git a/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go b/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go index c7da52a20..9c2fbb986 100644 --- a/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go +++ b/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go @@ -249,7 +249,9 @@ func isTestFunction(funcDecl *ast.FuncDecl) (bool, string) { if selectExpr, ok := starExp.X.(*ast.SelectorExpr); ok { if selectExpr.Sel.Name == testMethodStruct { if s, ok := selectExpr.X.(*ast.Ident); ok { - return s.Name == testMethodPackageType, param.Names[0].Name + if len(param.Names) > 0 { + return s.Name == testMethodPackageType, param.Names[0].Name + } } } } -- cgit mrf-deployment