Browse Source

chore: clean unused weak self closure in onCommittedDelta

main
Ali Alavi 2 weeks ago
parent
commit
14294522e7
  1. 3
      src/AppDelegate.swift

3
src/AppDelegate.swift

@ -131,8 +131,7 @@ public final class AppDelegate: NSObject, NSApplicationDelegate {
} }
// Handle streaming delta text (incremental committed words) // Handle streaming delta text (incremental committed words)
session.onCommittedDelta = { [weak self] delta in
guard let self = self else { return }
session.onCommittedDelta = { delta in
// If it's an executive slash command, do NOT type it into the input box // If it's an executive slash command, do NOT type it into the input box
if SonioxSettings.shared.voiceCommands && VoiceCommandExecutor.shared.isSlashCommand(text: delta) { if SonioxSettings.shared.voiceCommands && VoiceCommandExecutor.shared.isSlashCommand(text: delta) {
return return

Loading…
Cancel
Save