Skip to content

Commit 0e55213

Browse files
committed
Change return value of ipcMain method rename-file
1 parent 580c47a commit 0e55213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ ipcMain.handle('remove-file', (event, filePath) => {
9999
ipcMain.handle('rename-file', (event, filePath, newFilePath) => {
100100
console.log('ipcMain', 'rename-file', filePath, newFilePath)
101101
fs.renameSync(filePath, newFilePath)
102-
return newFilename
102+
return true
103103
})
104104

105105
// WINDOW MANAGEMENT

0 commit comments

Comments
 (0)