remove anonymous function and use named function

This commit is contained in:
Erik 2015-12-26 17:22:03 -05:00
parent 3d8867136d
commit 0ebe56d780

View File

@ -194,7 +194,7 @@ struct SocketPacket {
// calls _fillInPlaceholders, which replaces placeholders with the
// corresponding binary
private mutating func fillInPlaceholders() {
data = data.map({_fillInPlaceholders($0)})
data = data.map(_fillInPlaceholders)
}
// Helper method that looks for placeholder strings
@ -211,7 +211,7 @@ struct SocketPacket {
return cur
})
case let arr as [AnyObject]:
return arr.map({_fillInPlaceholders($0)})
return arr.map(_fillInPlaceholders)
default:
return object
}