review code.

This commit is contained in:
lijiahang
2023-09-21 11:30:50 +08:00
parent 6c8ccb3864
commit fbc40116f0
9 changed files with 12 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ public interface FileClient {
// TODO getOutputStream
/**
* 检文件是否存在
* 检文件是否存在
*
* @param path path
* @return 是否存在

View File

@@ -87,7 +87,7 @@ public class FileClientUtils {
// TODO getOutputStream
/**
* 检文件是否存在
* 检文件是否存在
*
* @param path path
* @return 是否存在

View File

@@ -34,7 +34,7 @@ public class ValidateLambdaWrapper<T> extends LambdaQueryWrapper<T> {
*/
private boolean isIllegal(Object... objects) {
for (Object object : objects) {
// 非 null 检
// 非 null 检
if (object == null) {
return true;
}

View File

@@ -24,7 +24,7 @@ public class LocalFileClient extends AbstractFileClient<LocalFileClientConfig> {
protected String doUpload(String path, InputStream in, boolean autoClose, boolean overrideIfExist) {
// 获取返回文件路径
String returnPath = this.getReturnPath(path);
// 检文件是否存在
// 检文件是否存在
if (!overrideIfExist && this.isExists(returnPath)) {
return returnPath;
}