diff2html/src/ui
Eric Cornelissen 3a480e4ab0 perf: check hljs is not null only once
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.
2022-11-02 22:43:23 +01:00
..
css Merge pull request #456 from ericcornelissen/455-sticky-file-headers 2022-11-01 00:14:45 +00:00
js perf: check hljs is not null only once 2022-11-02 22:43:23 +01:00