Update the `highlightCode` method of `Diff2HtmlUI` to check if the hljs reference is null only once (at the start). This address the "HACK" comments by using a locally scoped variable for hljs. This way, TypeScript is able to deduce that, after the initial null-check, hljs is in fact not null. |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||