Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 7912b5e

Browse files
committed
this code should no longer need
1 parent cf220c5 commit 7912b5e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

assets/javascripts/discourse/lib/diff-streamer.gjs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -196,19 +196,6 @@ export default class DiffStreamer {
196196
}
197197

198198
this.typingTimer = later(this, this.#streamNextChar, this.typingDelay);
199-
} else {
200-
if (!this.suggestion || !this.selectedText || !this.jsDiff) {
201-
return;
202-
}
203-
204-
const originalDiff = this.jsDiff.diffWordsWithSpace(
205-
this.selectedText,
206-
this.suggestion
207-
);
208-
209-
this.typingTimer = null;
210-
this.diff = this.#formatDiffWithTags(originalDiff, false);
211-
this.isStreaming = false;
212199
}
213200
}
214201

0 commit comments

Comments
 (0)