Skip to content

Commit

Permalink
Add explicit return to getRandomSlice
Browse files Browse the repository at this point in the history
Co-authored-by: Rootul P <rootulp@gmail.com>
  • Loading branch information
Manav-Aggarwal and rootulp authored May 17, 2023
1 parent 01282c4 commit ba2d14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util/testfactory/txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func GenerateRandomTxs(count, size int) types.Txs {
func GetRandomSlice(size int) (start int, length int) {
length = rand.Intn(size + 1)
start = rand.Intn(size - length + 1)
return
return start, length
}

// Returns whether subTxList is a subarray of txList
Expand Down

0 comments on commit ba2d14f

Please sign in to comment.