From 8bb3da0d670a4b602fb9401eaadf173d1212ad70 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Mon, 29 Jun 2020 15:49:46 -0400 Subject: [PATCH] Remove comment from iptc --- src/utils/parse-iptc.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utils/parse-iptc.ts b/src/utils/parse-iptc.ts index 0ff79ef079..2fa9771290 100644 --- a/src/utils/parse-iptc.ts +++ b/src/utils/parse-iptc.ts @@ -36,10 +36,6 @@ export default function parseIPTC(buffer: Buffer) { continue; } - // if (iptcBlockSize > buffer.length - (iptcBlockDataPos + iptcBlockSize)) { - // throw new Error('Invalid IPTC directory'); - // } - let iptcBlockTypeId = IPTC_ENTRY_TYPES.get(iptcBlockType); let iptcData = buffer.slice(iptcBlockDataPos, iptcBlockDataPos + iptcBlockSize).toString();