@@ -157,7 +157,7 @@ class SJEditorViewController: NSViewController, NSTextViewDelegate {
157157
158158
159159 func notify( completionState: Bool , fileCount: Int ) {
160- let notification : NSUserNotification = NSUserNotification ( )
160+ let notification = NSUserNotification ( )
161161 notification. title = " SwiftyJSONAccelerator "
162162 if completionState && fileCount > 0 {
163163 notification. subtitle = " Completed - \( fileCount) Generated. "
@@ -211,15 +211,15 @@ class SJEditorViewController: NSViewController, NSTextViewDelegate {
211211 */
212212 func handleError( _ error: NSError ? ) {
213213 if let message = error!. userInfo [ " debugDescription " ] as? String {
214- let numbers : [ String ] = message. components ( separatedBy: CharacterSet . decimalDigits. inverted)
214+ let numbers = message. components ( separatedBy: CharacterSet . decimalDigits. inverted)
215215
216216 var validNumbers : [ Int ] = [ ]
217217 for number in numbers where ( Int ( number) != nil ) {
218218 validNumbers. append ( Int ( number) !)
219219 }
220220
221221 if validNumbers. count == 1 {
222- let index : Int = validNumbers [ 0 ]
222+ let index = validNumbers [ 0 ]
223223 let errorPosition : ( character: String , line: Int , column: Int ) = characterRowAndLineAt ( ( textView? . string) !, position: index)
224224 let customErrorMessage = " Error at line number: \( errorPosition. line) column: \( errorPosition. column) at Character: \( errorPosition. character) . "
225225 invalidJSONError ( customErrorMessage)
@@ -290,7 +290,7 @@ class SJEditorViewController: NSViewController, NSTextViewDelegate {
290290 - returns: Return a valid path or nil.
291291 */
292292 func openFile( ) -> String ? {
293- let fileDialog : NSOpenPanel = NSOpenPanel ( )
293+ let fileDialog = NSOpenPanel ( )
294294 fileDialog. canChooseFiles = false
295295 fileDialog. canChooseDirectories = true
296296 fileDialog. canCreateDirectories = true
0 commit comments