Skip to content

Commit

Permalink
dropped check for width AND height, as separate checks are sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterverweirder committed Dec 10, 2014
1 parent d457592 commit 7c3f3c6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/obtain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 7c3f3c6

Please sign in to comment.