Skip to content

Commit

Permalink
Add non-null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jun 30, 2024
1 parent c61bddc commit 00b9d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/capricious-core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package randomization:

package text:
given Text is Randomizable as bigListOfNaughtyStrings:
val resource = getClass.getResourceAsStream("/capricious/blns.txt")
val resource = getClass.getResourceAsStream("/capricious/blns.txt").nn
val blns = IArray.from(scala.io.Source.fromInputStream(resource).getLines().map(_.tt))

def from(random: Random) = blns(random.long().toInt.abs%blns.length)
Expand Down

0 comments on commit 00b9d0a

Please sign in to comment.