From 211c182462e88290f7b0aa24ec0f7d0789fc648e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Aug 2021 22:53:20 +0530 Subject: [PATCH] DRYer --- src/pyj/read_book/tts.pyj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pyj/read_book/tts.pyj b/src/pyj/read_book/tts.pyj index 457d86e6f5..c3b7890336 100644 --- a/src/pyj/read_book/tts.pyj +++ b/src/pyj/read_book/tts.pyj @@ -156,9 +156,7 @@ class Client: commit() buf.push(markup) size += markup.length - text = buf.join('') - if text.length: - self.create_utterance(text) + commit() if self.queue.length: window.speechSynthesis.speak(self.queue[0])