Skip to content

Commit f14fa8e

Browse files
committed
feat: replace NumOut invokation to numOut variable.
1 parent 250db21 commit f14fa8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seq.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func validateSeqFuncParams(prev, cur reflect.Type) error {
8585
if isTakeContext {
8686
numIn--
8787
}
88-
if prev.NumOut() < numIn {
88+
if numOut < numIn {
8989
return ErrInvalidSeqFuncs
9090
}
9191

0 commit comments

Comments
 (0)