Skip to content

Commit 45316dd

Browse files
committed
ByteStream.fromBytes
1 parent c8408a7 commit 45316dd

File tree

1 file changed

+1
-3
lines changed
  • runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/compression

1 file changed

+1
-3
lines changed

runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/compression/GzipNative.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ public actual class Gzip : CompressionAlgorithm {
4545
}.flush()
4646
}
4747

48-
object : ByteStream.Buffer() {
49-
override fun bytes(): ByteArray = compressed
50-
}
48+
ByteStream.fromBytes(compressed)
5149
}
5250
}
5351
}

0 commit comments

Comments
 (0)