From bd7cece2ef340f514b1a5fd4e3de953753b64b5c Mon Sep 17 00:00:00 2001 From: ascend Date: Thu, 18 May 2023 09:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90feature=E3=80=91-=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81-UploadFile#write(File)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/hutool/core/net/multipart/UploadFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/org/dromara/hutool/core/net/multipart/UploadFile.java b/hutool-core/src/main/java/org/dromara/hutool/core/net/multipart/UploadFile.java index e16fdd208..26ff0dc66 100644 --- a/hutool-core/src/main/java/org/dromara/hutool/core/net/multipart/UploadFile.java +++ b/hutool-core/src/main/java/org/dromara/hutool/core/net/multipart/UploadFile.java @@ -96,7 +96,7 @@ public class UploadFile { public File write(File destination) throws IOException { assertValid(); - if (destination.isDirectory() == true) { + if (destination.isDirectory()) { destination = new File(destination, this.header.getFileName()); } if (data != null) {