File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ internal actual object SegmentPool {
14
14
15
15
actual fun recycle (segment : Segment ) {
16
16
}
17
- }
17
+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ private val buffer: dynamic
25
25
}
26
26
}
27
27
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? ) {
29
30
override fun toString (): String = path
30
31
}
31
32
@@ -108,4 +109,4 @@ private class FileSink(private val path: Path) : RawSink {
108
109
override fun close () {
109
110
closed = true
110
111
}
111
- }
112
+ }
Original file line number Diff line number Diff line change @@ -41,16 +41,16 @@ actual fun createTempFile(): String {
41
41
val filename = Random .nextULong().toString()
42
42
val fullpath = " $tmpdir${nodePath.sep}$filename .txt"
43
43
44
- if (fs.existsSync(fullpath)) {
44
+ if (fs.existsSync(fullpath) as Boolean ) {
45
45
continue
46
46
}
47
47
return fullpath
48
48
}
49
49
}
50
50
51
51
actual fun deleteFile (path : String ) {
52
- if (! fs.existsSync(path)) {
52
+ if (! fs.existsSync(path) as Boolean ) {
53
53
throw IOException (" File does not exist: $path " )
54
54
}
55
55
fs.rmSync(path)
56
- }
56
+ }
You can’t perform that action at this time.
0 commit comments