From 0ebe56d78041990fbcc35687644c47a1c370787a Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 26 Dec 2015 17:22:03 -0500 Subject: [PATCH] remove anonymous function and use named function --- Source/SocketPacket.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SocketPacket.swift b/Source/SocketPacket.swift index 76f587a..43985f7 100644 --- a/Source/SocketPacket.swift +++ b/Source/SocketPacket.swift @@ -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 }