mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
【feature】- 优化代码-UploadFile#write(File)
This commit is contained in:
parent
87fd7393f9
commit
bd7cece2ef
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user