Fix duplicate variable declaration in main.js
This commit is contained in:
parent
ce07fdbb74
commit
937200bf79
3
main.js
3
main.js
@ -135,8 +135,7 @@ ipcMain.handle('move-file-to-folder', async (event, { filePath, folderName }) =>
|
|||||||
try {
|
try {
|
||||||
writeLog(`Move file request received: ${filePath} to ${folderName}`);
|
writeLog(`Move file request received: ${filePath} to ${folderName}`);
|
||||||
|
|
||||||
const fs = require('fs');
|
// Note: fs and path are already required at the top level
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
// Check if file exists
|
// Check if file exists
|
||||||
if (!fs.existsSync(filePath)) {
|
if (!fs.existsSync(filePath)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user