mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Do nothing if input is empty for removeEXIF operation
This commit is contained in:
parent
0968912954
commit
cbcd45cd70
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ const Image = {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
removeEXIF(input, args) {
|
removeEXIF(input, args) {
|
||||||
|
// Do nothing if input is empty
|
||||||
|
if (input.length === 0) return input;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return removeEXIF(input);
|
return removeEXIF(input);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue