Skip to content

Commit a99ff4e

Browse files
chengjoeyl-qing
authored andcommitted
fix fan out matrix task failed due to result ref
Signed-off-by: chengjoey <[email protected]>
1 parent 22b6d55 commit a99ff4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/apis/pipeline/v1/matrix_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ func (m *Matrix) countGeneratedCombinationsFromParams() int {
236236
}
237237
count := 1
238238
for _, param := range m.Params {
239-
count *= len(param.Value.ArrayVal)
239+
if len(param.Value.ArrayVal) > 0 {
240+
count *= len(param.Value.ArrayVal)
241+
}
240242
}
241243
return count
242244
}

0 commit comments

Comments
 (0)