adamhartford / SwiftR

Swift client for SignalR (iOS and Mac)
MIT License
174 stars 74 forks source link

Change the 'error' can not identify by if #48

Closed Mqhong closed 8 years ago

Mqhong commented 8 years ago

Change the 'error' can not identify by if

SwiftR line 375 to 385

may there is a bug in swift—— if the parameters‘s type are AnyObject and the value is 'nil' , the if judgement not work.

adamhartford commented 8 years ago

Thanks. I think I'd like to fix it like this...

let error = json["error"] as AnyObject?

Let me know if you have any concerns with that.

adamhartford commented 8 years ago

Fixed in v0.10.5.

Mqhong commented 8 years ago

It was great to your approach