From 4b8a0ff4ac228f06c6d0c7e8e98676224f291fd1 Mon Sep 17 00:00:00 2001 From: muxator Date: Thu, 1 Nov 2018 00:18:26 +0100 Subject: [PATCH] LibreOffice: rename variables (conversion is generic and not PDF-specific) --- src/node/utils/LibreOffice.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/utils/LibreOffice.js b/src/node/utils/LibreOffice.js index 7c1289856..428fa32bf 100644 --- a/src/node/utils/LibreOffice.js +++ b/src/node/utils/LibreOffice.js @@ -98,9 +98,9 @@ function doConvertTask(task, callback) { // Move the converted file to the correct place function(callback) { var filename = path.basename(task.srcFile); - var pdfFilename = filename.substr(0, filename.lastIndexOf('.')) + '.' + task.type; - var pdfPath = path.join(tmpDir, pdfFilename); - fs.rename(pdfPath, task.destFile, callback); + var sourceFilename = filename.substr(0, filename.lastIndexOf('.')) + '.' + task.type; + var sourcePath = path.join(tmpDir, sourceFilename); + fs.rename(sourcePath, task.destFile, callback); } ], function(err) { // Invoke the callback for the local queue