Skip to content

Commit 474e3d5

Browse files
committedNov 14, 2020
fix
1 parent 5c01efb commit 474e3d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎Sources/TelegrammerMultipart/Utilities.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extension CharacterSet {
6363

6464
extension DataProtocol {
6565
func copyBytes() -> [UInt8] {
66-
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
66+
let buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
6767
self.copyBytes(to: buffer)
6868
defer { buffer.deallocate() }
6969
return .init(buffer)

‎Tests/TelegrammerTests/JobQueueTests/JobQueueTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class JobQueueTests: XCTestCase {
102102

103103
var performed = false
104104

105-
_ = queue.worker.next()
105+
queue.worker.next()
106106
.submit { () -> Void in
107107
performed = true
108108
}

0 commit comments

Comments
 (0)
Please sign in to comment.