             }
         }
         if eventCode == .HasBytesAvailable {
-            if(aStream == inputStream) {
+            if aStream == inputStream {
                 processInputStream()
             }
         } else if eventCode == .ErrorOccurred {

            
            let step = Int(offset+numericCast(len))
            let extra = bufferLen-step
            if(extra > 0) {
                processExtra((buffer+step), bufferLen: extra)
            }
        }

                return
            }
            var isNew = false
            if response == nil {
                if receivedOpcode == OpCode.ContinueFrame.rawValue  {
                    let errCode = CloseCode.ProtocolError.rawValue
                    doDisconnect(errorWithDetail("first frame can't be a continue frame",
