Improve isMarkdownString check

This commit is contained in:
Alex Ross
2020-07-13 14:16:02 +02:00
parent 878ed51edb
commit a9936ddd35

View File

@@ -1276,7 +1276,7 @@ export class MarkdownString {
if (thing instanceof MarkdownString) {
return true;
}
return (thing !== undefined) && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
return thing && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
}
}