imgix / imgix-objc

Official imgix Objective-C client.
MIT License
29 stars 3 forks source link

Small issue with string.length #1

Open rounak opened 9 years ago

rounak commented 9 years ago

https://github.com/soffes/imgix-objc/blob/master/Imgix/IGXFormat.m#L48

if (!string || string.length == 0)

you check if the string is nil or if its length is zero, but having a single check for string length zero should suffice, because calling the method on nil will also return 0.