fix Value 'baos' is always 'null'

This commit is contained in:
runphp
2022-02-13 01:22:42 +00:00
committed by Gitee
parent 297193b6ce
commit b0b16e1fc5

View File

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