!1000 【feature】- 优化代码-UploadFile#write(File)

Merge pull request !1000 from adeng/v6-dev
This commit is contained in:
Looly 2023-05-18 01:43:47 +00:00 committed by Gitee
commit 2e48d51794
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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) {