fix warning

This commit is contained in:
FalsePattern 2024-11-03 17:26:08 +01:00
parent 4a03dfbfe9
commit 55c5a93102
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23

View file

@ -177,7 +177,7 @@ class ZigDebuggerToolchainService {
} }
try { try {
downloadAndUnArchive(project, baseDir, downloadableBinaries) downloadAndUnArchive(baseDir, downloadableBinaries)
return DownloadResult.Ok(baseDir) return DownloadResult.Ok(baseDir)
} catch (e: IOException) { } catch (e: IOException) {
//TODO logging //TODO logging
@ -215,7 +215,7 @@ class ZigDebuggerToolchainService {
@Throws(IOException::class) @Throws(IOException::class)
@RequiresEdt @RequiresEdt
private suspend fun downloadAndUnArchive(project: Project?, baseDir: Path, binariesToDownload: List<DownloadableDebuggerBinary>) { private suspend fun downloadAndUnArchive(baseDir: Path, binariesToDownload: List<DownloadableDebuggerBinary>) {
val service = DownloadableFileService.getInstance() val service = DownloadableFileService.getInstance()
val downloadDir = baseDir.toFile() val downloadDir = baseDir.toFile()