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