From cbcd45cd70ffa57e31e1f19416b6225bf86d8abc Mon Sep 17 00:00:00 2001 From: David Moodie Date: Wed, 7 Jun 2017 20:01:45 +0100 Subject: [PATCH] Do nothing if input is empty for removeEXIF operation --- src/core/operations/Image.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/operations/Image.js b/src/core/operations/Image.js index 7bf375dc..336e5931 100644 --- a/src/core/operations/Image.js +++ b/src/core/operations/Image.js @@ -55,6 +55,9 @@ const Image = { * @returns {string} */ removeEXIF(input, args) { + // Do nothing if input is empty + if (input.length === 0) return input; + try { return removeEXIF(input); } catch (err) {