Skip to content

Commit 1806ed0

Browse files
committed
Cleanup
1 parent fa0d5bd commit 1806ed0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

core/js/src/SegmentPool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ internal actual object SegmentPool {
1414

1515
actual fun recycle(segment: Segment) {
1616
}
17-
}
17+
}

core/js/src/files/PathsJs.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ private val buffer: dynamic
2525
}
2626
}
2727

28-
public actual class Path internal constructor(private val path: String, any: Any?) {
28+
public actual class Path internal constructor(private val path: String,
29+
@Suppress("UNUSED_PARAMETER") any: Any?) {
2930
override fun toString(): String = path
3031
}
3132

@@ -108,4 +109,4 @@ private class FileSink(private val path: Path) : RawSink {
108109
override fun close() {
109110
closed = true
110111
}
111-
}
112+
}

core/js/test/utils.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ actual fun createTempFile(): String {
4141
val filename = Random.nextULong().toString()
4242
val fullpath = "$tmpdir${nodePath.sep}$filename.txt"
4343

44-
if (fs.existsSync(fullpath)) {
44+
if (fs.existsSync(fullpath) as Boolean) {
4545
continue
4646
}
4747
return fullpath
4848
}
4949
}
5050

5151
actual fun deleteFile(path: String) {
52-
if (!fs.existsSync(path)) {
52+
if (!fs.existsSync(path) as Boolean) {
5353
throw IOException("File does not exist: $path")
5454
}
5555
fs.rmSync(path)
56-
}
56+
}

0 commit comments

Comments
 (0)