Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unnecessary check

Manav Rathif5a4830a5a13
diff --git a/desktop/src/main/fs.ts b/desktop/src/main/fs.ts
index 749f21bf25..8d92820341 100644
--- a/desktop/src/main/fs.ts
+++ b/desktop/src/main/fs.ts
@@ -92,9 +92,6 @@ export const readTextFile = async (filePath: string) =>
fs.readFile(filePath, "utf-8");
export const moveFile = async (sourcePath: string, destinationPath: string) => {
- if (!existsSync(sourcePath)) {
- throw new Error("File does not exist");
- }
if (existsSync(destinationPath)) {
throw new Error("Destination file already exists");
}