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