1
0
mirror of synced 2024-11-17 11:37:13 +01:00

Do nothing if input is empty for removeEXIF operation

This commit is contained in:
David Moodie 2017-06-07 20:01:45 +01:00
parent 0968912954
commit cbcd45cd70

View File

@ -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) {