Skip to content

Commit 9cc65e0

Browse files
committed
fix build
1 parent d37c851 commit 9cc65e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nmcp-tasks/src/main/kotlin/nmcp/transport/publishFileByFile.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fun publishFileByFile(
4242
into: File,
4343
) {
4444
return publishFileByFile(
45-
FilesystemTransport(into.absolutePath),
45+
FilesystemTransport(into.absolutePath, null),
4646
from.walk().filter { it.isFile }.map {
4747
FileWithPath(it, it.relativeTo(from).path)
4848
}.toList(),

nmcp-tasks/src/main/kotlin/nmcp/transport/transport.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ fun Content.toRequestBody(): RequestBody {
166166

167167
internal class FilesystemTransport(
168168
private val basePath: String,
169-
private val logger: GLogger,
169+
private val logger: GLogger?,
170170
) : Transport {
171171
override fun get(path: String): BufferedSource? {
172-
logger.info("Nmcp: read '$path'")
172+
logger?.info("Nmcp: read '$path'")
173173
val file = File(basePath).resolve(path)
174174
if (!file.exists()) {
175175
return null
@@ -178,7 +178,7 @@ internal class FilesystemTransport(
178178
}
179179

180180
override fun put(path: String, body: Content) {
181-
logger.info("Nmcp: write '$path'")
181+
logger?.info("Nmcp: write '$path'")
182182
File(basePath).resolve(path).apply {
183183
parentFile.mkdirs()
184184
sink().buffer().use {

0 commit comments

Comments
 (0)