fix Value 'baos' is always 'null'

pull/151/head
runphp 3 years ago committed by Gitee
parent 297193b6ce
commit b0b16e1fc5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -61,7 +61,6 @@ public class ImageUtils
public static byte[] readFile(String url) public static byte[] readFile(String url)
{ {
InputStream in = null; InputStream in = null;
ByteArrayOutputStream baos = null;
try try
{ {
// 网络地址 // 网络地址
@ -81,7 +80,6 @@ public class ImageUtils
finally finally
{ {
IOUtils.closeQuietly(in); IOUtils.closeQuietly(in);
IOUtils.closeQuietly(baos);
} }
} }
} }

Loading…
Cancel
Save