Fix a number of unsafe operations (mostly forced unwrapping)

Swift is nice. I just searched for exclamation marks and made the program safer almost mechanically.
😄

-Samuel E. Giddins

On Dec 23, 2014, at 6:27 PM, JP Simard <notifications@github.com> wrote:

In sourcekitten/main.swift:

> @@ -29,6 +29,28 @@ var fileContentsLineBreaks = [Int]()
>  // MARK: Helper Functions
>  
>  /**
> +Print message to STDERR. Useful for UI messages without affecting STDOUT data.
> +
> +:param: message message to print.
> +*/
> +func printSTDERR(message: String) {
> +    let stderr = NSFileHandle.fileHandleWithStandardError()
 This man has a point.

—
Reply to this email directly or view it on GitHub.