mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-21 23:49:17 +01:00
Some clean up
This commit is contained in:
parent
0ed359a43a
commit
96e048b4b5
@ -46,9 +46,6 @@ public final class DecryptionService {
|
||||
}
|
||||
|
||||
private DecryptionService(FSTDataProvider dataProvider) {
|
||||
// if (dataProvider instanceof Parallelizable) {
|
||||
// parallelizable = true;
|
||||
// }
|
||||
this.dataProvider = dataProvider;
|
||||
}
|
||||
|
||||
@ -87,8 +84,6 @@ public final class DecryptionService {
|
||||
return;
|
||||
}
|
||||
|
||||
File target = new File(targetFilePath);
|
||||
|
||||
if (skipExistingFile) {
|
||||
File targetFile = new File(targetFilePath);
|
||||
if (targetFile.exists()) {
|
||||
@ -106,9 +101,10 @@ public final class DecryptionService {
|
||||
}
|
||||
}
|
||||
|
||||
File target = new File(targetFilePath);
|
||||
|
||||
// to avoid having fragmented files.
|
||||
FileUtils.FileAsOutputStreamWrapper(new File(targetFilePath), entry.getFileSize(),
|
||||
newOutputStream -> decryptFSTEntryToStream(entry, newOutputStream));
|
||||
FileUtils.FileAsOutputStreamWrapper(target, entry.getFileSize(), newOutputStream -> decryptFSTEntryToStream(entry, newOutputStream));
|
||||
} catch (Exception ex) {
|
||||
throw new CompletionException(ex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user