fix possible resource leak

This commit is contained in:
Chloe committed 2026-02-15 20:10:20 -07:00
1 parent d8985e14cc
commit 02c7399eea
1 file changed
+1 -1
@@ -357,7 +357,7 @@ class ReleaseManager private constructor(
} }
private fun computeFileHash(file: File): String = private fun computeFileHash(file: File): String =
file.source().buffer().readByteString().md5().hex() file.source().buffer().use { it.readByteString().md5().hex() }
private fun getGeodeOutputPath(): File { private fun getGeodeOutputPath(): File {
val geodeName = LaunchUtils.geodeFilename val geodeName = LaunchUtils.geodeFilename