tadeuzagallo / GithubPulse

OS X StatusBar app to help you remember to contribute every day on Github
http://tadeuzagallo.com/GithubPulse
MIT License
542 stars 20 forks source link

Fixed crash on startup with out internet #33

Closed johnknaack closed 9 years ago

tadeuzagallo commented 9 years ago

I had seen that yesterday, but hadn't commited yet, but I think the condition should be if data == nil { right?! Because that's what causes the crash, so if for some weird reason response is not nil but data is still nil it wouldn't crash. Does it make sense or sounds like an impossible scenario?

johnknaack commented 9 years ago

Yeah I think your right. I took a look at a few other examples. I've changed it to check data and that there is no error in the response now. Let me know what you think.

tadeuzagallo commented 9 years ago

Thanks, that looks great now! :smiley: