Skip to content

Commit

Permalink
Merge pull request #177 from noremac/dev/cameron.pulsford/var-let
Browse files Browse the repository at this point in the history
Replaces a force-unwrapped var with a let
  • Loading branch information
acmacalister committed Mar 1, 2016
2 parents e32674a + 43ade49 commit 592da86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ public class WebSocket : NSObject, NSStreamDelegate {
if dataLength > UInt64(bufferLen) {
len = UInt64(bufferLen-offset)
}
var data: NSData!
let data: NSData
if len < 0 {
len = 0
data = NSData()
Expand Down

0 comments on commit 592da86

Please sign in to comment.