Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
EsotericEnderman committed Jun 29, 2024
1 parent 8714201 commit e305dd9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/scripts/remove-loading-videos.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { archivedVideoEnding, blankSplashContent, moviesFolder, splashesToRemove } from "../constants.js";
import { readFileSync, rmSync, writeFileSync } from "fs";
import { archivedVideoEnding, blankSplashContent, moviesFolder, splashesToRemove } from "../constants";
import { existsSync, readFileSync, writeFileSync } from "fs";

export function removeLoadingVideos() {
for (const loadingVideo of splashesToRemove) {
Expand All @@ -22,8 +22,6 @@ export function removeLoadingVideos() {
console.log("Removing video " + fullFilePath + " and archiving it at " + archivedVideoFilePath + ".");

writeFileSync(archivedVideoFilePath, content);

rmSync(fullFilePath);
writeFileSync(fullFilePath, blankSplashContent);
}
}

0 comments on commit e305dd9

Please sign in to comment.