Skip to content

Commit

Permalink
suppress some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Nov 23, 2024
1 parent 82b52a0 commit 5e95c88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/generator/script/TaLibGenerator.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ operator fun StringBuffer.plusAssign(str: Any) {
* @property root
* @constructor Create empty Base wrapper
*/
@Suppress("MemberVisibilityCanBePrivate")
@Suppress("MemberVisibilityCanBePrivate", "KotlinConstantConditions", "UnusedReceiverParameter")
class TaLibGenerator(private val root: JsonObject) {

fun JsonObject.getAttr(key: String): String = get(key).asString
Expand Down
1 change: 1 addition & 0 deletions roboquant/src/main/kotlin/org/roboquant/feeds/Feed.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ inline fun Feed.applyEvents(
/**
* Convert a feed to a list of events, optionally limited to the provided [timeframe].
*/
@Suppress("RunBlocking")
fun Feed.toList(
timeframe: Timeframe = Timeframe.INFINITE,
): List<Event> = runBlocking {
Expand Down
2 changes: 1 addition & 1 deletion roboquant/src/test/kotlin/org/roboquant/TestData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ internal object TestData {

}


@Suppress("RunBlocking")
fun feedTest(feed: Feed, timeframe: Timeframe = Timeframe.INFINITE) = runBlocking {
var prev = Instant.MIN
for (event in play(feed, timeframe)) {
Expand Down

0 comments on commit 5e95c88

Please sign in to comment.