Skip to content

Commit f275871

Browse files
committed
cleanup
1 parent 3a6e4c0 commit f275871

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/editor/standalone/browser/standaloneServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ class StandaloneAudioService implements IAudioCueService {
10581058
playAudioCueLoop(cue: AudioCue): IDisposable {
10591059
return toDisposable(() => { });
10601060
}
1061-
playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean | undefined): void | IDisposable {
1061+
playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean | undefined): void {
10621062
}
10631063
}
10641064

src/vs/platform/audioCues/browser/audioCueService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface IAudioCueService {
2727

2828
playSound(cue: Sound, allowManyInParallel?: boolean): Promise<void>;
2929
playAudioCueLoop(cue: AudioCue): IDisposable;
30-
playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean): IDisposable | void;
30+
playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean): void;
3131
}
3232

3333
export class AudioCueService extends Disposable implements IAudioCueService {
@@ -57,7 +57,7 @@ export class AudioCueService extends Disposable implements IAudioCueService {
5757
await Promise.all(Array.from(sounds).map(sound => this.playSound(sound, true)));
5858
}
5959

60-
public playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean): void | IDisposable {
60+
public playRandomAudioCue(groupId: AudioCueGroupId, allowManyInParallel?: boolean): void {
6161
const cues = AudioCue.allAudioCues.filter(cue => cue.groupId === groupId);
6262
const index = Math.floor(Math.random() * cues.length);
6363
this.playAudioCue(cues[index], allowManyInParallel);

0 commit comments

Comments
 (0)