Remove redundant try clause

pull/398/head
johnniang 2019-11-21 23:28:31 +08:00
parent 35ab8407d8
commit b28eeb2657
1 changed files with 14 additions and 16 deletions

View File

@ -178,7 +178,6 @@ public class BackupServiceImpl implements BackupService {
@Override
public List<BackupDTO> listHaloBackups() {
try {
// Build backup dto
try (Stream<Path> subPathStream = Files.list(Paths.get(haloProperties.getBackupDir()))) {
return subPathStream
@ -193,7 +192,6 @@ public class BackupServiceImpl implements BackupService {
}
return 0;
}).collect(Collectors.toList());
}
} catch (IOException e) {
throw new ServiceException("Failed to fetch backups", e);
}