Graceful fallback for unsupported body range type

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-10-17 18:42:04 -05:00 committed by GitHub
parent b94bf9d88f
commit b2564e07ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -413,7 +413,7 @@ function rangeToPartialNode(
if (range.style === BodyRange.Style.NONE) {
return {};
}
throw missingCaseError(range.style);
return {};
}
if (BodyRange.isLink(range)) {
return {