service2.js: Remove excessive clearProofing() call

The markProofed() is called for block elements not proofed == not
present in this.results. Hence, clearProofing() has no effect in
markProofed().
This commit is contained in:
Simon Rozman 2024-05-21 18:31:54 +02:00
parent 49dc3385ea
commit 478f6269ee

View File

@ -507,7 +507,6 @@ class BesDOMService extends BesService {
* @param {Array} matches Grammar mistakes * @param {Array} matches Grammar mistakes
*/ */
markProofed(el, matches) { markProofed(el, matches) {
this.clearProofing(el)
this.results.push({ this.results.push({
element: el, element: el,
matches: matches matches: matches