imgix-objc icon indicating copy to clipboard operation
imgix-objc copied to clipboard

Small issue with string.length

Open rounak opened this issue 10 years ago • 0 comments

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.

rounak avatar May 24 '15 04:05 rounak