Browse Source

!151 fix Value 'baos' is always 'null'

Merge pull request !151 from runphp/N/A
tags/v3.5.0
若依 3 years ago committed by Gitee
parent
commit
8fac26edca
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 2
      ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java

2
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java

@ -61,7 +61,6 @@ public class ImageUtils @@ -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 @@ -81,7 +80,6 @@ public class ImageUtils
finally
{
IOUtils.closeQuietly(in);
IOUtils.closeQuietly(baos);
}
}
}

Loading…
Cancel
Save