Skip to content

Commit 571275b

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Replace unused parameter with _
1 parent 43553c2 commit 571275b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/kotlin-multiplatform/src/jsMain/kotlin/JsAsyncBenchmarks.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class JsAsyncBenchmarks {
3737
@Benchmark
3838
fun promiseDelayedBaseline(): Promise<Double> {
3939
// Score of this benchmark cannot be greater than 10 ops/sec
40-
return Promise { resolve, reject ->
40+
return Promise { resolve, _ ->
4141
setTimeout({
4242
resolve(data)
4343
}, 100)

runtime/jsMain/src/kotlinx/benchmark/js/JsExecutor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class JsExecutor(name: String, @Suppress("UNUSED_PARAMETER") dummy_args: Array<o
6262
jsBenchmark.options.async = asynchronous
6363
jsBenchmark.options.defer = asynchronous
6464

65-
jsBenchmark.on("start") { event ->
65+
jsBenchmark.on("start") { _ ->
6666
reporter.startBenchmark(executionName, id)
6767
suite.setup(instance)
6868
}

0 commit comments

Comments
 (0)