From b0b16e1fc529f36b2eeb296946c993de2ce7984b Mon Sep 17 00:00:00 2001 From: runphp Date: Sun, 13 Feb 2022 01:22:42 +0000 Subject: [PATCH] fix Value 'baos' is always 'null' --- .../main/java/com/ruoyi/common/core/utils/file/ImageUtils.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java index 9f0cfbd2..0857e521 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/file/ImageUtils.java @@ -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); } } }