Skip to content

Commit 95a7734

Browse files
osipxdbjhham
authored andcommitted
Fix RETURN_IN_FUNCTION_WITH_EXPRESSION_BODY_AND_IMPLICIT_TYPE
1 parent ea31919 commit 95a7734

File tree

1 file changed

+2
-2
lines changed
  • ktor-client/ktor-client-webrtc/ios/src/io/ktor/client/webrtc

1 file changed

+2
-2
lines changed

ktor-client/ktor-client-webrtc/ios/src/io/ktor/client/webrtc/Utils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ internal fun NSData.toByteArray(): ByteArray = ByteArray(length.toInt()).apply {
112112
}
113113

114114
@OptIn(BetaInteropApi::class)
115-
internal fun ByteArray.toNSData() = memScoped<NSData> {
116-
return NSData.create(bytes = this@toNSData.toCValues().ptr, length = size.toULong())
115+
internal fun ByteArray.toNSData(): NSData = memScoped {
116+
NSData.create(bytes = this@toNSData.toCValues().ptr, length = size.toULong())
117117
}
118118

119119
internal fun ByteArray.toRTCDataBuffer(): RTCDataBuffer {

0 commit comments

Comments
 (0)