Skip to content

Commit 736325e

Browse files
committed
fix: don't report version for signatures while downloading
1 parent 65eb1ec commit 736325e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/coder/toolbox/cli/downloader/CoderDownloadService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ class CoderDownloadService(
148148
while (source.read(buffer).also { bytesRead = it } != -1) {
149149
sink.write(buffer, 0, bytesRead)
150150
totalRead += bytesRead
151+
val prettyBuildVersion = buildVersion ?: ""
151152
showTextProgress(
152-
"$binaryName $buildVersion - ${totalRead.toHumanReadableSize()} downloaded"
153+
"$binaryName $prettyBuildVersion - ${totalRead.toHumanReadableSize()} downloaded"
153154
)
154155
}
155156
}

0 commit comments

Comments
 (0)