From 7c3f3c6deb4de89ae3c2abb9d8726ecc83357c7e Mon Sep 17 00:00:00 2001 From: Wouter Verweirder Date: Wed, 10 Dec 2014 16:37:57 +0100 Subject: [PATCH] dropped check for width AND height, as separate checks are sufficient --- lib/obtain.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/obtain.js b/lib/obtain.js index 1ddbf00f..a983e388 100644 --- a/lib/obtain.js +++ b/lib/obtain.js @@ -29,9 +29,6 @@ }); } else if (source instanceof Buffer) { if(typeof type === 'object') { - if(!type.width && !type.height) { - throw Error("Missing width and height"); - } if(!type.width) { throw Error("Missing width"); }