!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

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