fix(接口定义)revert commit 9f49f57a 参数优化

This commit is contained in:
wxg0103 2021-09-15 11:31:29 +08:00 committed by fit2-zhao
parent 085777b58d
commit b44282d2a3
1 changed files with 0 additions and 6 deletions

View File

@ -158,12 +158,6 @@ public class FileService {
private FileType getFileType(String filename) { private FileType getFileType(String filename) {
int s = filename.lastIndexOf(".") + 1; int s = filename.lastIndexOf(".") + 1;
String type = filename.substring(s); String type = filename.substring(s);
FileType type1 =FileType.valueOf(type.toUpperCase());
for (FileType type2:FileType.values()) {
if (!type1.equals(type2)){
return null;
}
}
return FileType.valueOf(type.toUpperCase()); return FileType.valueOf(type.toUpperCase());
} }