Skip to content

Commit bf6d6fd

Browse files
committed
百度云解压bug修改
1 parent 4e28ea8 commit bf6d6fd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

common/src/main/java/lee/study/down/io/BdyZip.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,7 @@ private static boolean isRight(List<String> centralList, BdyZipEntry fixEntry,
173173
public static List<BdyZipEntry> getFixedEntryList(FileChannel fileChannel,
174174
BdyUnzipCallback callback) throws IOException {
175175
List<BdyZipEntry> list = new ArrayList<>();
176-
List<String> centralList;
177-
try {
178-
centralList = getCentralList(fileChannel);
179-
} catch (IllegalArgumentException e) {
180-
centralList = new ArrayList<>();
181-
} catch (IOException e) {
182-
throw e;
183-
}
176+
List<String> centralList = getCentralList(fileChannel);
184177
fileChannel.position(0);
185178
while (true) {
186179
BdyZipEntry entry = getNextFixedBdyZipEntry(fileChannel, centralList, callback);

0 commit comments

Comments
 (0)