Skip to content

Commit

Permalink
Replace magic constant
Browse files Browse the repository at this point in the history
  • Loading branch information
770grappenmaker committed Apr 3, 2024
1 parent 2090416 commit 1b99141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/net/weavemc/gradle/util/DownloadUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object DownloadUtil {
else {
val digest = MessageDigest.getInstance("SHA-1")
file.inputStream().use { input ->
val buffer = ByteArray(0x2000)
val buffer = ByteArray(DEFAULT_BUFFER_SIZE)
var read: Int

while (input.read(buffer).also { read = it } >= 0) {
Expand Down

0 comments on commit 1b99141

Please sign in to comment.