From e418080d35ea3b69e72c1e1903b8cfdb056eba68 Mon Sep 17 00:00:00 2001 From: "Larsen, Chris" Date: Tue, 29 Mar 2016 15:52:36 -0400 Subject: [PATCH] Removes unneeded closure, revert back to trim in init --- VimeoUpload/Upload/Model/VideoSettings.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/VimeoUpload/Upload/Model/VideoSettings.swift b/VimeoUpload/Upload/Model/VideoSettings.swift index 0f40452b..49483c57 100644 --- a/VimeoUpload/Upload/Model/VideoSettings.swift +++ b/VimeoUpload/Upload/Model/VideoSettings.swift @@ -55,12 +55,8 @@ class VideoSettings: NSObject self.privacy = privacy self.users = users self.password = password - - // Wrap in closure so didSet gets called [CL] 3/25/16 - ({ - self.title = title - self.desc = description - })() + self.title = self.trim(title) + self.desc = self.trim(description) } // MARK: Public API