Skip to content

Commit

Permalink
Swift 3.0.2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jan 28, 2018
1 parent 7530895 commit b1ff4c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/BluetoothLinux/GATTClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,7 @@ private extension GATTClient {
@inline(__always)
func success(_ attributes: [ATTReadByTypeResponse.AttributeData]) {

var data = [UInt16: Data]()
data.reserveCapacity(attributes.count)
var data = [UInt16: Data](minimumCapacity: attributes.count)

for attribute in attributes {

Expand Down

0 comments on commit b1ff4c1

Please sign in to comment.