Skip to content

Commit 698baa2

Browse files
committed
clean code
1 parent 2820e23 commit 698baa2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/client-discord/src/voice.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,7 @@ export class VoiceManager extends EventEmitter {
576576
const wavBuffer = await this.convertOpusToWav(inputBuffer);
577577
console.log("Starting transcription...");
578578

579-
let transcriptionText: string;
580-
581-
transcriptionText = await this.runtime
579+
const transcriptionText = await this.runtime
582580
.getService<ITranscriptionService>(ServiceType.TRANSCRIPTION)
583581
.transcribe(wavBuffer);
584582

0 commit comments

Comments
 (0)