From 63c047009f6d3b8d20ef291bc4ce036c48aaf03b Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Mon, 22 Apr 2019 18:24:50 +0200 Subject: [PATCH] Remove useless returns and unused parameter Change-type: patch --- lib/gui/app/modules/image-writer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/gui/app/modules/image-writer.js b/lib/gui/app/modules/image-writer.js index 8d74f0c4..6ea21e4a 100644 --- a/lib/gui/app/modules/image-writer.js +++ b/lib/gui/app/modules/image-writer.js @@ -200,8 +200,7 @@ exports.performWrite = (image, drives, onProgress) => { imagePath: image, destinations: drives, validateWriteOnSuccess: settings.get('validateWriteOnSuccess'), - unmountOnSuccess: settings.get('unmountOnSuccess'), - checksumAlgorithms: [ 'xxhash' ] + unmountOnSuccess: settings.get('unmountOnSuccess') }) }) @@ -259,14 +258,14 @@ exports.performWrite = (image, drives, onProgress) => { }) } - return resolve(flashResults) + resolve(flashResults) }).catch((error) => { // This happens when the child is killed using SIGKILL const SIGKILL_EXIT_CODE = 137 if (error.code === SIGKILL_EXIT_CODE) { error.code = 'ECHILDDIED' } - return reject(error) + reject(error) }).finally(() => { console.log('Terminating IPC server') terminateServer()