Skip to content

Commit 9ee553d

Browse files
committed
fix: remove redundent check
1 parent a48129f commit 9ee553d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/installer/minecraft.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -554,19 +554,6 @@ export function postProcessTask(processors: InstallProfile["processors"], minecr
554554
} catch (e) {
555555
throw new Error(`Fail on execute processor ${proc.jar}: ${JSON.stringify(cmd)}\n stderr: ${e}`)
556556
}
557-
let failed = false;
558-
if (proc.outputs) {
559-
for (const file in proc.outputs) {
560-
if (! await validateSha1(file, proc.outputs[file].replace(/'/g, ""))) {
561-
console.error(`Fail to process ${proc.jar} @ ${file} since its validation failed.`);
562-
failed = true;
563-
}
564-
}
565-
}
566-
if (failed) {
567-
console.error(`Java arguments: ${JSON.stringify(cmd)}`);
568-
throw new Error("Fail to process post processing since its validation failed.");
569-
}
570557
}
571558
return task("postProcessing", async function postProcessing(ctx) {
572559
if (!processors || processors.length === 0) {

0 commit comments

Comments
 (0)