add missing break keyword to sd_imageFormatForImageData function while converting NSData to SDImageFormat
This commit is contained in:
parent
a41be90abd
commit
de88563c18
|
@ -74,12 +74,14 @@
|
||||||
return SDImageFormatPDF;
|
return SDImageFormatPDF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case 0x3C: {
|
case 0x3C: {
|
||||||
// Check end with SVG tag
|
// Check end with SVG tag
|
||||||
if ([data rangeOfData:[kSVGTagEnd dataUsingEncoding:NSUTF8StringEncoding] options:NSDataSearchBackwards range: NSMakeRange(data.length - MIN(100, data.length), MIN(100, data.length))].location != NSNotFound) {
|
if ([data rangeOfData:[kSVGTagEnd dataUsingEncoding:NSUTF8StringEncoding] options:NSDataSearchBackwards range: NSMakeRange(data.length - MIN(100, data.length), MIN(100, data.length))].location != NSNotFound) {
|
||||||
return SDImageFormatSVG;
|
return SDImageFormatSVG;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return SDImageFormatUndefined;
|
return SDImageFormatUndefined;
|
||||||
|
|
Loading…
Reference in New Issue