mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -312,7 +312,7 @@ public class Sftp extends AbstractFtp {
|
||||
if (CollUtil.isEmpty(entries)) {
|
||||
return ListUtil.empty();
|
||||
}
|
||||
return CollUtil.map(entries, LsEntry::getFilename, true);
|
||||
return CollUtil.map(entries, LsEntry::getFilename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -157,7 +157,7 @@ public class SshjSftp extends AbstractFtp {
|
||||
throw new FtpException(e);
|
||||
}
|
||||
if (CollUtil.isNotEmpty(infoList)) {
|
||||
return CollUtil.map(infoList, RemoteResourceInfo::getName, true);
|
||||
return CollUtil.map(infoList, RemoteResourceInfo::getName);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user