Quellcode durchsuchen

fix Value 'baos' is always 'null'

runphp vor 4 Jahren
Ursprung
Commit
b0b16e1fc5

+ 0 - 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
     public static byte[] readFile(String url)
61
     public static byte[] readFile(String url)
62
     {
62
     {
63
         InputStream in = null;
63
         InputStream in = null;
64
-        ByteArrayOutputStream baos = null;
65
         try
64
         try
66
         {
65
         {
67
             // 网络地址
66
             // 网络地址
@@ -81,7 +80,6 @@ public class ImageUtils
81
         finally
80
         finally
82
         {
81
         {
83
             IOUtils.closeQuietly(in);
82
             IOUtils.closeQuietly(in);
84
-            IOUtils.closeQuietly(baos);
85
         }
83
         }
86
     }
84
     }
87
 }
85
 }