Remove unessesary null check

Trust the compiler and code
This commit is contained in:
Dolan
2019-01-09 21:19:57 +00:00
parent abd5ace85c
commit 942c6d028c

View File

@ -23,10 +23,6 @@ export class Drawing extends XmlComponent {
constructor(imageData: IMediaData, drawingOptions: IDrawingOptions = {}) {
super("w:drawing");
if (imageData === undefined) {
throw new Error("imageData cannot be undefined");
}
if (!drawingOptions.floating) {
this.inline = new Inline(imageData, imageData.dimensions);
this.root.push(this.inline);